We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dabf869 commit 51b93b8Copy full SHA for 51b93b8
src/graphql/execution/execute.py
@@ -336,8 +336,9 @@ def execute_operation(self) -> AwaitableOrValue[Any]:
336
337
Implements the "Executing operations" section of the spec.
338
"""
339
+ schema = self.schema
340
operation = self.operation
- root_type = self.schema.get_root_type(operation.operation)
341
+ root_type = schema.get_root_type(operation.operation)
342
if root_type is None:
343
raise GraphQLError(
344
"Schema is not configured to execute"
@@ -346,7 +347,7 @@ def execute_operation(self) -> AwaitableOrValue[Any]:
346
347
)
348
349
root_fields = collect_fields(
- self.schema,
350
+ schema,
351
self.fragments,
352
self.variable_values,
353
root_type,
0 commit comments