File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -331,13 +331,12 @@ def build_response(
331
331
)
332
332
return ExecutionResult (data , errors )
333
333
334
- def execute_operation (
335
- self , operation : OperationDefinitionNode
336
- ) -> AwaitableOrValue [Any ]:
334
+ def execute_operation (self ) -> AwaitableOrValue [Any ]:
337
335
"""Execute an operation.
338
336
339
337
Implements the "Executing operations" section of the spec.
340
338
"""
339
+ operation = self .operation
341
340
root_type = self .schema .get_root_type (operation .operation )
342
341
if root_type is None :
343
342
raise GraphQLError (
@@ -1035,8 +1034,7 @@ def execute(
1035
1034
errors = exe_context .errors
1036
1035
build_response = exe_context .build_response
1037
1036
try :
1038
- operation = exe_context .operation
1039
- result = exe_context .execute_operation (operation )
1037
+ result = exe_context .execute_operation ()
1040
1038
1041
1039
if exe_context .is_awaitable (result ):
1042
1040
# noinspection PyShadowingNames
You can’t perform that action at this time.
0 commit comments