graphql-python / graphql-core-legacy

GraphQL base implementation for Python (legacy version – see graphql-core for the current one)
MIT License
374 stars 183 forks source link

Fixed crash occurring when one sends a query containing type definitions #257

Closed NyanKiyoshi closed 5 years ago

NyanKiyoshi commented 5 years ago

Fixes #256

Cito commented 5 years ago

In GraphQL.js and GraphQL-core-next you can also pass a single node to GraphQLError. An alternative fix would be to also allow single nodes, but I think this fix is good enough.