From f46ac08cffafbe9f643e88cd2906cb278bc5882b Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Fri, 26 Oct 2018 22:03:43 +0800 Subject: [PATCH] Fix doc about graphql usage. --- docs/source/tour.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/tour.rst b/docs/source/tour.rst index 74f78f4..e2d3e83 100644 --- a/docs/source/tour.rst +++ b/docs/source/tour.rst @@ -46,7 +46,7 @@ Serve a GraphQL API:: return f"Hello {name}" schema = graphene.Schema(query=Query) - view = responder.ext.GraphQLView(query=query, api=api) + view = responder.ext.GraphQLView(api=api, schema=schema) api.add_route("/graph", view)