File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ def execute(
69
69
variable_values : Dict [str , Any ]= None ,
70
70
operation_name : str = None ,
71
71
field_resolver : GraphQLFieldResolver = None ,
72
- execution_context_class : Type [ ExecutionContext ] = ExecutionContext ,
73
- middleware : Middleware = None
72
+ middleware : Middleware = None ,
73
+ execution_context_class : Type [ 'ExecutionContext' ] = None ,
74
74
) -> MaybeAwaitable [ExecutionResult ]:
75
75
"""Execute a GraphQL operation.
76
76
@@ -86,6 +86,9 @@ def execute(
86
86
# If arguments are missing or incorrect, throw an error.
87
87
assert_valid_execution_arguments (schema , document , variable_values )
88
88
89
+ if execution_context_class is None :
90
+ execution_context_class = ExecutionContext
91
+
89
92
# If a valid execution context cannot be created due to incorrect
90
93
# arguments, a "Response" with only errors is returned.
91
94
exe_context = execution_context_class .build (
You can’t perform that action at this time.
0 commit comments