diff --git a/aiohttp_graphql/graphqlview.py b/aiohttp_graphql/graphqlview.py index 362d87e..34122c3 100644 --- a/aiohttp_graphql/graphqlview.py +++ b/aiohttp_graphql/graphqlview.py @@ -36,6 +36,7 @@ def __init__( encoder=None, error_formatter=None, enable_async=True, + **execution_options, ): # pylint: disable=too-many-arguments # pylint: disable=too-many-locals @@ -58,6 +59,7 @@ def __init__( self.executor, AsyncioExecutor, ) + self.execution_options = execution_options assert isinstance(self.schema, GraphQLSchema), \ 'A Schema is required to be provided to GraphQLView.' @@ -141,6 +143,7 @@ async def __call__(self, request): context_value=self.get_context(request), middleware=self.middleware, executor=self.executor, + **self.execution_options, ) awaited_execution_results = await Promise.all(execution_results)