Skip to content
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

react-admin's useUnique gets _ilike when it should be _eq #161

Open
ceracera opened this issue Aug 10, 2023 · 0 comments
Open

react-admin's useUnique gets _ilike when it should be _eq #161

ceracera opened this issue Aug 10, 2023 · 0 comments

Comments

@ceracera
Copy link
Contributor

When using useUnique to check if there is already a record with that field name, react-admin sends getList query with exact match.

ra-data-hasura transforms string filters on LIST to always be { _ilike: %value% }, so there is no way to check if there is unique record since it should be {_eq: value}.

Tried to fix this but couldn't use local version of ra-data-hasura probably because there is no lib folder in build, only dist.

How should ra-data-hasura package be used for local testing and development/contributing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant