-
-
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
ra-data-graphql-simple: problem GET_MANY_REFERENCE in buildVariables.js #2571
Comments
I'm sorry, I don't understand your issue.
Which record? According to which part of the documentation?
What?
I understand you're using a GraphQL dataProvider, is that right? Which one? Could the problem come from there? As for the request payload snippet, either it's incomplete, or it's badly formatted. I don't understand what's normal or not in there. Please attach a CodeSandbox demonstrating the issue. |
Documentation:
what was expected in the request: what is actually in the request: yes
what ra-data-graphql-simple sends to the server:
because of As I understand it, ra-data-graphql-simple generates a filter for the query and it does it wrong. What query filter for resource Customer is provided for such a component?
Sorry, I can't add my GraphQL server to the CodeSandbox for demonstration. schema.graphql is created as specified here:
|
Update:
It solved my problem, but is it right? |
Can you make a PR to fix it? |
I also ran into this issue and the fix worked. If there isn't a PR up in a couple of days I'll open one for it with the above fix. |
@redorb please feel free to open a PR |
Any update on this? |
Why the pull requests were closed? |
Let's try a poll :)
|
In addition, I was faced with the fact that in does not work with ra-data-graphql-simple (it is worth noting that everything works fine in DEMO).
does not add all necessary parameters to query.
|
@christiaanwesterbeek I reopened the PR |
Fixed by #2649 |
Hi.
It was expected that the record would be returned as in the documentation.
The query filter gets an object in the object, which prevents you from working further.
expected filter:
variables: {filter: {userId:"cjoa0w1z5005y0b91ka78ug3r"}}
Here's what gets into Request payload:
the response from the server:
The text was updated successfully, but these errors were encountered: