Skip to content
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

Parser allows sequential fragment spread and selection set #17

Closed
ilmoraunio opened this issue Jun 7, 2024 · 0 comments · Fixed by #18
Closed

Parser allows sequential fragment spread and selection set #17

ilmoraunio opened this issue Jun 7, 2024 · 0 comments · Fixed by #18
Labels
bug Something isn't working

Comments

@ilmoraunio
Copy link
Collaborator

Another finding with generative tests, using ./bin/run-gen-tests --seed 1133573659.

Invalid syntax with offending token '{' at line 1 column 17

This exception is coming from an external GraphQL parser, so we are producing incorrect GraphQL here.

Reduced example:

(gql '[:oksa/mutation [[:... {:name :f}] [["E1lgzB" {}]]]])
=> "mutation {...f{E1lgzB}}"

We should restrict the parser not to allow this corner case.

Related: #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant