Created
June 18, 2020 22:20
-
-
Save maniish-jaiin/950e1037f60543ce4460dd9574e037a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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