marmelab / ra-supabase

Supabase adapter for react-admin, the frontend framework for building admin applications on top of REST/GraphQL services.
MIT License
150 stars 27 forks source link

Can't have two filters on the same field (e.g. gte and lte) #46

Closed slax57 closed 8 months ago

slax57 commented 8 months ago

Problem

Setting two filters with operators (like gte and lte) targeting the same field (e.g. last_seen@gte and last_seen@lte) will throw an error like:

time zone "lte.2023-12-31t16:00:00.000z" not recognized

This is due to using an old version of the underlying library ra-data-postgrest (version 2.0.0-alpha.0), which has this bug.

Solution

The issue has since been resolved in ra-data-postgrest , so we need to update to version 2.0.0.