-
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
nested args in v0.2 #203
Comments
@jardakotesovec are you using the default network layer? Can you paste the full query that is sent to the server, along with the full set of variables? The snippet you included starts at an |
Note that |
Here is the whole payload from 0.2.0
And server responds
On server we are using latest graphql 0.4.2. |
And yes, I am using default network layer. |
Seeing same thing, unclear where this variable should be defined. |
@josephsavona Looks like the printed query is missing the type declaration for |
@jardakotesovec @grydstedt this is now fixed on master. |
Just updated to relay 0.2.1 and graphql 0.4.3 and request changed
And I get error from server:
Is that correct now and do I just need somehow add this object type? Thanks! |
I can't reopen this issue.. should I open new one? Issue is still the same.. |
@josephsavona ping :-) |
@jardakotesovec My bad, I didn't realize you couldn't reopen. Do you get this issue if you're running on master (for both |
Thanks @josephsavona . You were right - It still does not handle correctly the non null type situation, my definitions is:
Therefore in request should be Error I get:
Here is the request example:
|
@jardakotesovec this is fixed in the PR - the printed type now accounts for arbitrarily nested lists/non-null annotations so that Relay will print |
@jardakotesovec should be fixed on master now - let me know if this is still a problem! |
I have been using nested argument like this in 0.1.1 and it worked fine.
Relay embedded these args like this:
With version Relay 0.2 it creates reference to variables like this:
I am pretty sure that I am passing variables object correctly to graphql function on server, but I get error from server
Any idea whats going on? Name
$tagIds_0
is clearly generated somehow by relay - so not sure how I could reflect that on server.The text was updated successfully, but these errors were encountered: