-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to override nullsfirst / nullslast in getList sort #160
Comments
Thanks for stating this. I will look into this. Maybe, we could also implement it, so that it will be realizable by
What do you think about that variant? |
Unfortunately, TypeScript won't let you do that as I think the |
I just saw in the code some mechanism for global setting: https://github.com/raphiniert-com/ra-data-postgrest?tab=readme-ov-file#null-sort-order This is not an option for your use-case? |
in my use case, yes I think it can work. I still think this should be supported on a per-query basis. |
I tested the config and it doesn't work for |
Problem
The
getList
implementation will use onlyasc
ordesc
sort orders, while PostgREST supports additional options likedesc.nullslast
.There is no simple wat to set
nullsfirst
ornullslast
in agetList
query without overriding the entiregetList
implementationSolution
If the
getList
meta
option containsnullsfirst
ornullslast
, append it to the sort order.The text was updated successfully, but these errors were encountered: