Skip to content

Conversation

dittos
Copy link
Contributor

@dittos dittos commented Jul 6, 2015

DataType is unknown type, so ...Frag fragment spread was ignored and recursion was not tested correctly.

Additional question: is it intended to just ignore a fragment on the unknown type?

leebyron added a commit that referenced this pull request Jul 7, 2015
Test recursion avoidance correctly
@leebyron leebyron merged commit 858e693 into graphql:master Jul 7, 2015
@leebyron
Copy link
Contributor

leebyron commented Jul 7, 2015

Great catch, thanks!

@leebyron
Copy link
Contributor

leebyron commented Jul 7, 2015

Yes, that's correct. This is testing the behavior of non-verified queries, to ensure behavior is correct in the case a query is executed before being validated.

If validated, the fragment recursion would have been caught before execution, as would the mistyped type information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants