diff --git a/flask_graphql/graphqlview.py b/flask_graphql/graphqlview.py index 4aa7225..0ed3160 100644 --- a/flask_graphql/graphqlview.py +++ b/flask_graphql/graphqlview.py @@ -30,6 +30,7 @@ class GraphQLView(View): pretty = False graphiql = False graphiql_version = None + middleware = None methods = ['GET', 'POST', 'PUT', 'DELETE'] @@ -180,6 +181,7 @@ def execute_graphql_request(self, data, query, variables, operation_name, show_g variable_values=variables or {}, operation_name=operation_name, context_value=self.get_context(request), + middleware=self.middleware, executor=self.executor ) except Exception as e: