You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React admin is a great library. We have built a large app out of it
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
We are changing our app from REST to GraphQL. We have lots of custom views, and approx. 100 REST API resources. A view (Front end UI) maybe shown differently to each person depending on some logic.
While moving from REST to GraphQL, we found two problems,
We did not find any props to pass custom GraphQL Query or Mutation down to the DataProvider for Edit, Create and Show Component.
In the ra-simple-graphql it is advised to use resource and type of DataProvider to handle custom queries. If we use this approach then we may need to write Number of resources x Number of DataProvider Methods, If/else Conditions.
(100 * 6 = 600) in my case.
There for we were hoping that we could call custom GraphQL Query which will be passed down via Edit or Show Component. Then we may need not write to 600 Conditions, It will be much less i.e only 6 conditions or 10 conditions.
Since we could not find any ways to pass props down to DataProvider, we have to write lot of code otherwise graphql will call it's default query and bring fields we may not need for the UI
Describe the solution you'd like
A clear and concise description of what you want to happen.
Ability to pass custom prop via for custom GraphQL Query, and
Describe alternatives you've considered
For List component I have used filters to pass custom graphql query.
Additional context
Add any other context or screenshots about the feature request here.
It is also possible that I have missed something and my problems solution is already available. In that case pls point out to me specific resource
The text was updated successfully, but these errors were encountered:
React-admin v4 introduces the meta parameter on all dataProvider queries, so what you ask is already possible by using the dataProvider hooks (e.g. useGetOne) manually.
We'll add support for passing a custom meta parameter to view components (e.g. <Edit>) in a future minor release.
React admin is a great library. We have built a large app out of it
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
We are changing our app from REST to GraphQL. We have lots of custom views, and approx. 100 REST API resources. A view (Front end UI) maybe shown differently to each person depending on some logic.
While moving from REST to GraphQL, we found two problems,
(100 * 6 = 600) in my case.
There for we were hoping that we could call custom GraphQL Query which will be passed down via Edit or Show Component. Then we may need not write to 600 Conditions, It will be much less i.e only 6 conditions or 10 conditions.
For example
Since we could not find any ways to pass props down to DataProvider, we have to write lot of code otherwise graphql will call it's default query and bring fields we may not need for the UI
Describe the solution you'd like
A clear and concise description of what you want to happen.
Ability to pass custom prop via for custom GraphQL Query, and
Describe alternatives you've considered
For List component I have used filters to pass custom graphql query.
Additional context
Add any other context or screenshots about the feature request here.
It is also possible that I have missed something and my problems solution is already available. In that case pls point out to me specific resource
The text was updated successfully, but these errors were encountered: