You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@matronator , it's because JSON Server doesn't natively support filtering based on date ranges out of the box.
JSON Server treats query parameters as string values, so when you use _gte, it's comparing the strings lexicographically rather than comparing them as dates. As a result, you're not getting the desired filtering effect.
DB file:
URL:
http://localhost:3000/days?date_gte=2024-03-01
Returns an empty array.
The text was updated successfully, but these errors were encountered: