Skip to content

Commit 51b93b8

Browse files
committed
Minor simplification
Roughly replicates graphql/graphql-js@467be3e
1 parent dabf869 commit 51b93b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/graphql/execution/execute.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,9 @@ def execute_operation(self) -> AwaitableOrValue[Any]:
336336
337337
Implements the "Executing operations" section of the spec.
338338
"""
339+
schema = self.schema
339340
operation = self.operation
340-
root_type = self.schema.get_root_type(operation.operation)
341+
root_type = schema.get_root_type(operation.operation)
341342
if root_type is None:
342343
raise GraphQLError(
343344
"Schema is not configured to execute"
@@ -346,7 +347,7 @@ def execute_operation(self) -> AwaitableOrValue[Any]:
346347
)
347348

348349
root_fields = collect_fields(
349-
self.schema,
350+
schema,
350351
self.fragments,
351352
self.variable_values,
352353
root_type,

0 commit comments

Comments
 (0)