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 cefbdf1 commit 072c59eCopy full SHA for 072c59e
src/graphql/execution/execute.py
@@ -1354,12 +1354,9 @@ def create_source_event_stream(
1354
separating these two steps. For more on this, see the "Supporting Subscriptions
1355
at Scale" information in the GraphQL spec.
1356
"""
1357
- if not execution_context_class:
1358
- execution_context_class = ExecutionContext
1359
-
1360
# If a valid context cannot be created due to incorrect arguments,
1361
# a "Response" with only errors is returned.
1362
- context = execution_context_class.build(
+ context = (execution_context_class or ExecutionContext).build(
1363
schema,
1364
document,
1365
root_value,
0 commit comments