You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When multiple queries are declared in a query document but the chosen operation doesn't reference a schema that requires a variable, there is a parse error.
Given the following schema, which we'll call schema:
I'm noodling on a way to do the checks for this that aren't too expensive in terms of navigating around the selection set. I'd probably want to catch recursive fragments at the same time.
This looks like a bug, but I'm struggling to figure out a way to properly recognize defined-by-not-referenced fragments, as well as exclude fragments such as in this case. I probably need to look into spec to see what is required w.r.t validation of fragments in cases such as this.
When multiple queries are declared in a query document but the chosen operation doesn't reference a schema that requires a variable, there is a parse error.
Given the following schema, which we'll call
schema
:And query document, which we'll call
query-doc
:This parses fine:
But this throws an exception:
The problem appears to be that fragments are included without considering whether the chosen operation makes use of them.
The text was updated successfully, but these errors were encountered: