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
While working on a project I made a mistake in a Mutation where I referenced an Object Type as an Input Type and the engine started normally.
Then when trying to use this I got:
✔ Loading Apollo Project
✖ Saving schema to schema.json
→ Introspection must provide input type for arguments, but received: AuthenticationType!. Error: Introspection must provide input type for arguments, but received: AuthenticationType!. at invariant (/usr/local/lib/node_modules/apollo/node_modules/graphql/jsutils/invariant.js:19:11) at getInputType (/usr/local/lib/node_modules/apollo/node_modules/graphql/utilities/buildClientSchema.js:115:66) at buildInputValue (/usr/local/lib/node_modules/apollo/node_modules/graphql/utilities/buildClientSchema.js:275:16) at /usr/local/lib/node_modules/apollo/node_modules/graphql/jsutils/keyValMap.js:36:31 at Array.reduce (<anonymous>) at keyValMap (/usr/local/lib/node_modules/apollo/node_modules/graphql/jsutils/keyValMap.js:35:15) at buildInputValueDefMap (/usr/local/lib/node_modules/apollo/node_modules/graphql/utilities/buildClientSchema.js:269:35) at /usr/local/lib/node_modules/apollo/node_modules/graphql/utilities/buildClientSchema.js:263:15 at /usr/local/lib/node_modules/apollo/node_modules/graphql/jsutils/keyValMap.js:36:31 at Array.reduce (<anonymous>)
So I guess we should validate that objects referenced as inputs are of type inputType and raise an error if that's not the case
Thanks!
The text was updated successfully, but these errors were encountered:
While working on a project I made a mistake in a Mutation where I referenced an Object Type as an Input Type and the engine started normally.
Then when trying to use this I got:
So I guess we should validate that objects referenced as inputs are of type inputType and raise an error if that's not the case
Thanks!
The text was updated successfully, but these errors were encountered: