File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ include .flake8
77include .pylintrc
88
99include tox.ini
10+ include travis.yml
1011
1112graft aiohttp_graphql
1213graft tests
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def __init__(
3535 encoder = None ,
3636 error_formatter = None ,
3737 enable_async = True ,
38+ ** execution_options ,
3839 ):
3940 # pylint: disable=too-many-arguments
4041 # pylint: disable=too-many-locals
@@ -54,6 +55,7 @@ def __init__(
5455 self .encoder = encoder or json_encode
5556 self .error_formatter = error_formatter or default_format_error
5657 self .enable_async = enable_async and isinstance (self .executor , AsyncioExecutor )
58+ self .execution_options = execution_options
5759 assert isinstance (
5860 self .schema , GraphQLSchema
5961 ), "A Schema is required to be provided to GraphQLView."
@@ -140,6 +142,7 @@ async def __call__(self, request):
140142 context_value = self .get_context (request ),
141143 middleware = self .middleware ,
142144 executor = self .executor ,
145+ ** self .execution_options ,
143146 )
144147
145148 if is_graphiql and self .enable_async :
You can’t perform that action at this time.
0 commit comments