Skip to content
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

fix(shell-api): .watch() signature and behavior fixes MONGOSH-976 #1107

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

addaleax
Copy link
Contributor

Modify the .watch() signature so that it “officially” allows
omitting the first argument.

As a drive-by fix, stop applying .tryNext() for cases in which
the change stream cursor starts from a specific point in time.
(Unfortunately, .hasNext() is not an option here, unlike
discussed with the Node.js driver team, because it is blocking
like .next() and unlike .tryNext().)

Modify the `.watch()` signature so that it “officially” allows
omitting the first argument.

As a drive-by fix, stop applying `.tryNext()` for cases in which
the change stream cursor starts from a specific point in time.
(Unfortunately, `.hasNext()` is not an option here, unlike
discussed with the Node.js driver team, because it is blocking
like `.next()` and unlike `.tryNext()`.)
@addaleax addaleax merged commit f4e672b into main Sep 14, 2021
@addaleax addaleax deleted the 976-dev branch September 14, 2021 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants