def router(app): schema = graphene.Schema(query=RootQuery) router = GrapheneRouter.from_schema(schema).serving_on(app.app) return router