-
Notifications
You must be signed in to change notification settings - Fork 1.8k
refactor(NODE-1812)!: replace returnOriginal with returnDocument option #2803
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
refactor(NODE-1812)!: replace returnOriginal with returnDocument option #2803
Conversation
d75d36f to
6991e10
Compare
52f5ef4 to
0694585
Compare
|
The corresponding deprecation for 3.6 is here: #2808 |
nbbeeken
left a comment
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.
Some suggestions:
0694585 to
235dc7c
Compare
nbbeeken
left a comment
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.
🚀
emadum
left a comment
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.
LGTM 👍
Description
NODE-1812
BREAKING:
returnOriginaloption no longer supported forfindOneAndReplace()andfindOneAndUpdate()collection methods, use the newreturnDocumentenum instead.Replaced
returnOriginalwithreturnDocumentoption in order to conform with shared drivers spec.