ra-data-postgrest
ra-data-postgrest copied to clipboard
Let the sort param in getList be optional
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: {} });