-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error Cannot query field "node" on type "Query".
after setVariables
#1195
Comments
Apparently moving the
solves the problem I was having. |
The last comment didn't solve the problem fully, it was still missing using the variable as argument. I have noticed that the graphQL schema was missing |
Hi!
I'm using this query
included as:
Which, after using
.setVariables({disease: ...})
, attempts to send this query:And it fails with error message
Cannot query field "node" on type "Query".
However, if I were to change the above query (playing in graph_i_QL) to:
It executes correctly, except that it's not using the variable.
I am using
react-relay
v0.7.3. Also, I'm usingreact-router-relay
v0.10.1 for routing and setting queries to:Any ideas how to fix this?
The text was updated successfully, but these errors were encountered: