We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following should produce a syntax error, as variables cannot be used in constant value positions:
query($id1: ID, $id2: ID = $id1) { __typename }
Apollo Compiler parses the above. By comparison, the graphql-js reference implementation produces the following parse error:
graphql-js
Syntax Error: Unexpected variable "$id1" in constant value.
Try parsing the above query.
Expected syntax error.
Apollo compiler successfully parses
The text was updated successfully, but these errors were encountered:
ah yep, that's a bug! thanks for reporting. I'll look into it next week.
this is a irl use case of issue reported in #538
Sorry, something went wrong.
I believe this was fixed in #777
lrlna
No branches or pull requests
Description
The following should produce a syntax error, as variables cannot be used in constant value positions:
Apollo Compiler parses the above. By comparison, the
graphql-js
reference implementation produces the following parse error:Steps to reproduce
Try parsing the above query.
Expected result
Expected syntax error.
Actual result
Apollo compiler successfully parses
The text was updated successfully, but these errors were encountered: