graphql-go
graphql-go copied to clipboard
Introspection must provide input type for arguments
I'm trying to use our graphql-go based API in combination with Graphcools GraphQL Playground and GraphiQL and I'm getting the following error in both:
Introspection must provide input type for arguments.
The documentation obviously doesn't work, though the schema compiles and runs just fine, queries work like a charm, just the introspection seems to be broken.
I think this may have to do with the recent changes to the specification not being implemented in this library yet.
Any chance it'll be fixed in the near future?
Sorry for the delay in picking this issue up. Have you found a solution? Do you know which part of the introspection query is failing?
Not yet, as far as I can remember I couldn't get the newest versions of GraphiQL and GraphQL Playground to work with this library. Introspection didn't work at all throwing the error described above.
Okay, if you get the chance to post the error it'd be super helpful! I'll take a shot a reproducing the issue myself.
Is this issue still open? I am getting a similar error:
Error: Introspection must provide input type for arguments.
at invariant (https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.11/graphiql.js:25010:11)
at getInputType (https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.11/graphiql.js:31071:29)
at buildInputValue (https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.11/graphiql.js:31210:16)
at https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.11/graphiql.js:25140:31
at Array.reduce (<anonymous>)
at keyValMap (https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.11/graphiql.js:25139:15)
at buildInputValueDefMap (https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.11/graphiql.js:31204:36)
at fields (https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.11/graphiql.js:31185:16)
at resolveThunk (https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.11/graphiql.js:28097:40)
at GraphQLInputObjectType._defineFieldMap (https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.11/graphiql.js:28607:20)
Any idea what a fix for this would be? It just started occurring for me.
since it can't use Object Types
in Input Types
.
but when I use a list of Object Types
in Input Types
, then I get the errorIntrospection must provide input type for arguments.
@romshark I'm closing this issue due to inactivity. I'm not able to reproduce it locally.