-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
GraphQL Simple Data Provider Sparse Field Support #9392
GraphQL Simple Data Provider Sparse Field Support #9392
Conversation
Hi, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First review.
Great job 👍
@adguernier Thanks for your feedback. I went ahead and made the recommended changes and improved the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat! Thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant the eslint warnings :)
Ahh got it. Not sure how I missed those warnings. Changes pushed up :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though the feature is nice, I'm a bit reluctant to merge it as ra-data-graphql-simple
is merely an example implementation. Are you actually using this provider?
Yes, here at Talysto we have used Over the years, our team has identified a fullstack application framework, which we are calling Groovestack, that powers many of our scalable applications across various industries. The stack consists of PostgreSQL, Rails, GraphQL and React-Admin. To connect our GraphQL APIs with React-Admin, we found that the flexibility of the Here is a quick example demo of an admin dash powered by Groovestack CORE Jobs. You can easily experiment with Groovestack and it's CORE modules by using our create-groovestack utility. |
Sparse Field Support for Queries and Mutations
By default, most data provider requests return
This feature enables sparse field support for all data provider requests. Sparse fields are passed through via the existing meta param. This can increase efficiency, optimize client performance, improve security and reduce over-fetching. Also, it allows for the request of nested association fields beyond just their ID. It is available for all dataprovider actions.
An example
getOne
request would look like: