Skip to content

Commit d36099a

Browse files
committed
Handle errors raised by sourceStream
1 parent 7073e3a commit d36099a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec/Section 6 -- Execution.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,12 @@ MapSourceToResponseEvent(sourceStream, subscription, schema, variableValues):
297297
- Let {response} be the result of running
298298
{ExecuteSubscriptionEvent(subscription, schema, variableValues, event)}.
299299
- Yield an event containing {response}.
300-
- When {sourceStream} completes: complete {responseStream}.
300+
- When {sourceStream} completes:
301+
- If {sourceStream} completed with an {error}:
302+
- Let {errors} be a list containing {error}.
303+
- Let {response} be an unordered map containing {errors}.
304+
- Yield an event containing {response}.
305+
- Complete {responseStream}.
301306

302307
ExecuteSubscriptionEvent(subscription, schema, variableValues, initialValue):
303308

0 commit comments

Comments
 (0)