Skip to content
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

How can I integrate with GraphiQL explorer and GraphQL Voyager? #834

Closed
zayazayazaya opened this issue Dec 24, 2019 · 4 comments
Closed

Comments

@zayazayazaya
Copy link

No description provided.

@zayazayazaya zayazayazaya changed the title How can we integrate with GraphiQL explorer and GraphQL Voyager? How can I integrate with GraphiQL explorer and GraphQL Voyager? Dec 24, 2019
@jkimbo
Copy link
Member

jkimbo commented Dec 26, 2019

@zayazayazaya graphiql is available automatically as long as you pass graphiql=True to the GraphQLView.as_view call: http://docs.graphene-python.org/projects/django/en/latest/installation/#installation

To add GraphQL Voyager you will have to set it up in your project and point it to your graphql endpoint. Looks like there are instructions on how to do that in the project README: https://github.com/APIs-guru/graphql-voyager#using-pre-bundled-version

@jkimbo jkimbo closed this as completed Dec 26, 2019
@jonocodes
Copy link

I'm thinking OP was asking more along the lines of this
graphql-python/graphene#998

@avinoamsn
Copy link

@zayazayazaya graphiql is available automatically as long as you pass graphiql=True to the GraphQLView.as_view call: http://docs.graphene-python.org/projects/django/en/latest/installation/#installation

@jkimbo This is not an answer to OP's question. OP is asking about adding graphiql-explorer to the provided GraphiQL interface (like @jonocodes said), NOT about enabling GraphiQL itself. #1204 seems to have a decent manual solution, borrowed from strawberry.

@jkimbo
Copy link
Member

jkimbo commented Aug 11, 2021

@avinoamsn alright I must have misread the question. It wasn't intentional 🙂

Anyway the right answer is to override the default template to include the code necessary to make graphiql-explorer work as you rightly point out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants