Graphql-js: Introspection must provide input type for arguments

Created on 24 Aug 2015  路  4Comments  路  Source: graphql/graphql-js

Hello everyone!
Can somebody tell me the meaning of this error?

Thank!

Most helpful comment

It's tough to say without seeing a full stack trace, but it's possible that you're using a GraphQLObjectType as the type of an input argument, rather than a GraphQLInputObjectType; http://facebook.github.io/graphql/#sec-Input-Objects explains why object types are disallowed as the types of arguments and why input objects are used instead.

All 4 comments

It's tough to say without seeing a full stack trace, but it's possible that you're using a GraphQLObjectType as the type of an input argument, rather than a GraphQLInputObjectType; http://facebook.github.io/graphql/#sec-Input-Objects explains why object types are disallowed as the types of arguments and why input objects are used instead.

Based on https://github.com/facebook/relay/issues/159, sounds like this is resolved.

Yes, it is. Thx!

Is the link above broken (the documentation one)? It doesn't send us anywhere, and I'm running into this same issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mjasnikovs picture mjasnikovs  路  4Comments

gjuchault picture gjuchault  路  4Comments

matthewgertner picture matthewgertner  路  4Comments

galki picture galki  路  3Comments

scf4 picture scf4  路  3Comments