-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add error handling for stream iterators #5
Conversation
afa63e7
to
18b5bf5
Compare
spec/Section 6 -- Execution.md
Outdated
- Add an entry to {payload} named `items` with the value {null}. | ||
- Add an entry to {payload} named `errors` with the value {errors}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move these two lines down so it's not repeated in both conditions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, lower down, we have conditions on adding those entries, but when the iterator errors, we don't have conditions. There may be a way to consolidate that I haven't thought of, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we delete this line and move this
- If {errors} is not empty:
- Add an entry to {payload} named `errors` with the value {errors}.
to outside of the Otherwise:
block?
* Add error handling for stream iterators * also add iterator error handling within CompleteValue * incorporate feedback
* Add error handling for stream iterators * also add iterator error handling within CompleteValue * incorporate feedback
* Add defer and stream directives to type system * Add defer/stream validation rules
* Add defer and stream directives to type system * Add defer/stream validation rules
This diff looks smaller when ignoring white space :)