Skip to content

Instantly share code, notes, and snippets.

@maniish-jaiin
Created June 18, 2020 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maniish-jaiin/950e1037f60543ce4460dd9574e037a3 to your computer and use it in GitHub Desktop.
Save maniish-jaiin/950e1037f60543ce4460dd9574e037a3 to your computer and use it in GitHub Desktop.
from flask_graphql import GraphQLView
def create_app():
... from app.schema import schema app.add_url_rule(
'/graphql',
view_func=GraphQLView.as_view(
'graphql',
schema=schema,
graphiql=True # for having the GraphiQL interface
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment