graphql-go icon indicating copy to clipboard operation
graphql-go copied to clipboard

Introspection must provide input type for arguments

Open romshark opened this issue 7 years ago • 7 comments

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.

romshark avatar Feb 14 '18 13:02 romshark

I think this may have to do with the recent changes to the specification not being implemented in this library yet.

tonyghita avatar Feb 14 '18 16:02 tonyghita

Any chance it'll be fixed in the near future?

romshark avatar Feb 27 '18 21:02 romshark

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?

tonyghita avatar Apr 06 '18 04:04 tonyghita

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.

romshark avatar Apr 07 '18 11:04 romshark

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.

tonyghita avatar Apr 07 '18 14:04 tonyghita

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.

mwilli31 avatar May 15 '18 03:05 mwilli31

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.

BlindingDark avatar Jun 13 '18 12:06 BlindingDark

@romshark I'm closing this issue due to inactivity. I'm not able to reproduce it locally.

pavelnikolov avatar Feb 14 '23 10:02 pavelnikolov