fix(stream): allow initialValue of zero#2979
Merged
robrichard merged 2 commits intographql:defer-streamfrom Apr 6, 2021
Merged
fix(stream): allow initialValue of zero#2979robrichard merged 2 commits intographql:defer-streamfrom
robrichard merged 2 commits intographql:defer-streamfrom
Conversation
e0e3cad to
2caec2d
Compare
6d08565 to
38f678c
Compare
Contributor
Author
|
I am not sure why the flow integration tests fail -- they pass if we bump the flow version used in integration tests to 0.142 to match the base repo. On the other hand, if I downgrade the base repo to 0.135, it triggers the following seemingly unrelated errors: |
Contributor
Author
|
huh. and now integration tests are passing again. wierd. |
Contributor
Author
|
I didn't bother adding an additional test -- the existing code was not allowing an asynciterator to stream initialValues=0, was always acting as if initialValues was at least 1. |
Contributor
Author
|
@robrichard @IvanGoncharov ready for review |
Contributor
|
@yaacovCR can you add a test for this case? |
Contributor
Author
|
Sure |
Contributor
Author
|
Done |
yaacovCR
added a commit
to ardatan/graphql-tools
that referenced
this pull request
May 1, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.