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 0ed2bc2 commit ec97284Copy full SHA for ec97284
graphql/execution/executor.py
@@ -75,6 +75,8 @@ def on_rejected(error):
75
return None
76
77
def on_resolve(data):
78
+ if not context.errors:
79
+ return ExecutionResult(data=data)
80
return ExecutionResult(data=data, errors=context.errors)
81
82
promise = Promise(executor).catch(on_rejected).then(on_resolve)
graphql/execution/experimental/executor.py
@@ -45,6 +45,8 @@ def on_rejected(error):
45
46
47
48
49
50
51
52
0 commit comments