marmelab / ra-supabase

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

Add ability to pass additional options to postgrest #74

Closed fzaninotto closed 2 months ago

fzaninotto commented 2 months ago

Problem

PostGREST exposes a config option that ra-supabase doesn't expose: sort order.

We could add a new parameter if it in the ra-supabase data provider constructor, but each time postgrest adds new configs, we'll need to update ra-supabase, too.

Solution

Add support for all possible postgrest config options, present and future, via a rest parameter