-
Notifications
You must be signed in to change notification settings - Fork 178
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
Unexpected name "null" when null is provided to an arguments #47
Comments
I'm facing the same issue too. Could you find a work arround for it? 😰 @alansmithribae |
@alansmithribae @okbel sorry for taking so long to address this issue - i dug deeper into this and found that passing we updated |
Thanks @jnwng for getting back to me. I double checked the version and I am using graphql-tag v1.2.4. I'm using it with angular 2 by the way - not sure if this makes a difference. |
@alansmithribae ah, you're correct - we used to bundle the |
this should be resolved as part of |
I have a use case where i'm trying to get root nodes of a tree represented in a relational database - i've used GraphQL to wrap around Sequelize.
To achieved this, I want to pass "null" as an argument to my GraphQL server as part of the query - according to the GraphQL spec null parameter values are allowed (http://facebook.github.io/graphql/#sec-Null-Value). However, graphql-tag seems to throw the following error when parsing the query:
Syntax Error GraphQL (2:25) Unexpected Name "null"
1: query {
2: taxon(parentId: null) {
^
3: id,
I have a workaround for this issue - but just wondered whether it was intended functionality?
Thanks,
Alan
The text was updated successfully, but these errors were encountered: