Skip to content

Fix the returnOriginal param in the findOneAndUpdate #2749

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

Closed
wants to merge 1 commit into from
Closed

Fix the returnOriginal param in the findOneAndUpdate #2749

wants to merge 1 commit into from

Conversation

ahmadassaf
Copy link

@ahmadassaf ahmadassaf commented Oct 28, 2016

The correct parameter to return the new update document when using findOneAndUpdate is returnOriginal instead of returnNewDocument


This change is Reviewable

@kay-kim
Copy link
Contributor

kay-kim commented Sep 18, 2019

Hi --
thank you for this pull request and apologies for the long delay.
I believe the returnOriginal is for the node.js driver whereas the page in question is for the mongo shell method where returnNewDocument is correct (we have since updated the page to distinguish between the two). As such, will close this pull request, but we definitely appreciate your taking the time to help us improve the docs and apologies once again for the delay in response.

Regards,

Kay Kim

@kay-kim kay-kim closed this Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants