-
Notifications
You must be signed in to change notification settings - Fork 360
Trouble using GraphiQL (gq -i
) - schema
missing?
#684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks like you are using this CLI tool: https://github.com/hasura/graphqurl I am a little confused as to what the issue is. The endpoint this library provides, Is there an issue making an introspection query with that CLI tool? Do you know the query it runs when executing |
Just a side note
the above is a default schema definition that generally can be omitted (i.e. if omitted GraphQL servers should default to the above). When generating SDL we opted to explicitly print out the whole schema (see link). |
@danbim Is your issue with the schema generator or the introspection library you are using?
|
Sorry for my late response, I only got back to this topic now. It's actually this tool I'm using: https://github.com/graphql/graphiql which seems related / a continuation of the one you found. It seems I myself got confused by the graphical frontend of the tool which you can start using
[Btw. yes, In fact, both
Thanks for the clarification, I wasn't aware of it being optional. |
We have included the GraphQL Playground by default at However, we will keep an eye on the project as they are going to be merging together. If there is some specific bug that is not unique to your use case that we can fix in |
Hi there!
I have some trouble using my
graphql-kotlin
server withGraphiQL
(https://github.com/graphql/graphiql). While it seems to work nicely on the cmd line (e.g. usinggq --introspect http://localhost:8080/graphql
), it fails in interactive mode (gq -i http://localhost:8080/graphql
), statingTypeError: Preflight response is not successful
.Looking at the outputs of
gq --introspect ...
vs.curl http://localhost:8080/sdl
I can see that for the former misses theschema
block:I'm rebuilding a simple app I've had previously built in Scala/Calibre. In this implementation the
gq --introspect
response also contains theschema
block, so I'm suspecting a bug here.https://graphql.org/learn/schema/#the-query-and-mutation-types doesn't explicitly state that
schema
is required but it looks like implicitly it is (as it is the entry point for any client).Would be great if you could help :)
The text was updated successfully, but these errors were encountered: