gql icon indicating copy to clipboard operation
gql copied to clipboard

Throws when an Input type is used for an Output field

Open kumarharsh opened this issue 6 years ago • 0 comments

If by mistake I use an Input type for an output field, the whole plugin crashes and I have to reload the window.

Stack:

Error: SomeQueryType.someOutputField field type must be Output Type but got: SomeInputField.
    at invariant (d:\...\node_modules\@playlyfe\gql\node_modules\graphql\jsutils\invariant.js:19:11)
    at d:\...\node_modules\@playlyfe\gql\node_modules\graphql\type\definition.js:337:29
    at Array.forEach (native)
    at defineFieldMap (d:\...\node_modules\@playlyfe\gql\node_modules\graphql\type\definition.js:328:14)
    ...

kumarharsh avatar Feb 05 '18 15:02 kumarharsh