Skip to content

Commit 11f0513

Browse files
committed
Use promise.get() instead of promise.value in executor
This small change allows for resolvers to return Promises and still get resolved properly using the `SyncExecutor`.
1 parent 9591078 commit 11f0513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/execution/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def on_resolve(data):
5151

5252
p = Promise(executor).catch(on_rejected).then(on_resolve)
5353
context.executor.wait_until_finished()
54-
return p.value
54+
return p.get()
5555

5656

5757
def execute_operation(exe_context, operation, root_value):

0 commit comments

Comments
 (0)