-
Notifications
You must be signed in to change notification settings - Fork 33
How can I have custom identifiers/primary keys for my resources? #57
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
Comments
hi Akamit21, I am a novice (at least as a developer) myself but I hope this helps you. In the readme for ra-data-hasura it has a section on different primary keys best regards, Chris |
Have a similar question as @akamit21 ! (@affluent-bilby-classifieds that is for a different library that is not compatible with ra-data-hasura-graphql. I'm actually in the process of migrating from that library to this one.) |
A guess would be some modification here: https://github.com/Steams/ra-data-hasura-graphql#customize-fields-variables-responseparser ? |
Yes, I tried to implement but didn't work out. |
Having the same issue, with the added complication that I am using composite primary keys. Did any of you figure it out? |
Nope, not yet, but to resolve my primary key problem I rename the |
@akamit21 can you show an example of your workaround on how you are renaming the primary key to id while fetching the data? |
Well, I made the changes in
|
My table has a primary key other than id and react-admin enforces id to be returned in the response by the DataProvider. So can I configure different primary keys/identifiers for my resources?
The text was updated successfully, but these errors were encountered: