This is a failing test case covering an introspection query erro when using a variable in fragment #148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a failing test case, (no fix included) that demonstrates an error I came across when sending an introspection query using a variable and using that variable in a fragment.
The background is that I was trying out an Elm GraphQl package together with your tutorial server and getting this error:
The test data file in this PR includes a cut down version of the query that still exhibits the error.
As far as I have been able to tell it is provoked when using a query variable in an introspection query, and then using this query variable in a fragment. If I try to use the query variable directly in the query part it is ok, and if I use a hard coded parameter in the fragment part it is ok. From the error message it seems that the graphql engine tries to pass the AST of the variable (or variable listed in the fragment?) to the graphql_scalar_bool_coerce.erl functions, instead of the resolved value?