ra-data-postgrest icon indicating copy to clipboard operation
ra-data-postgrest copied to clipboard

Let the sort param in getList be optional

Open christiaanwesterbeek opened this issue 2 years ago • 0 comments

It should be possible to use useGetList without a sort parameter. The postgrest client wil currently throw an error in such cases. This PR is to make the sort parameter optional, because the postgrest api will happily accept calls without the order query param.

const { data } = useGetList('some-resource', { filter: {} });

christiaanwesterbeek avatar Sep 01 '22 10:09 christiaanwesterbeek