Skip to content

Commit

Permalink
Handle errors raised by sourceStream
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 21, 2024
1 parent 7073e3a commit d36099a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/Section 6 -- Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,12 @@ MapSourceToResponseEvent(sourceStream, subscription, schema, variableValues):
- Let {response} be the result of running
{ExecuteSubscriptionEvent(subscription, schema, variableValues, event)}.
- Yield an event containing {response}.
- When {sourceStream} completes: complete {responseStream}.
- When {sourceStream} completes:
- If {sourceStream} completed with an {error}:
- Let {errors} be a list containing {error}.
- Let {response} be an unordered map containing {errors}.
- Yield an event containing {response}.
- Complete {responseStream}.

ExecuteSubscriptionEvent(subscription, schema, variableValues, initialValue):

Expand Down

0 comments on commit d36099a

Please sign in to comment.