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

returnOriginal flag is deprecated in findOneAndUpdate #38

Open
dulacskamty opened this issue Jun 7, 2021 · 0 comments
Open

returnOriginal flag is deprecated in findOneAndUpdate #38

dulacskamty opened this issue Jun 7, 2021 · 0 comments

Comments

@dulacskamty
Copy link

Hi!
I really like this great package, thanks for creating that!

However, I got a DeprecationWarning during .get():
"[MONGODB DRIVER] DeprecationWarning: collection.findOneAndUpdate option [returnOriginal] is deprecated and will be removed in a later version".

(Other developers have also experienced this warning with MongoDB driver:
Automattic/mongoose#10285)

This deprecation was introduced in the latest MongoDB driver:
https://jira.mongodb.org/browse/NODE-1812

I thought that maybe you may want to know about this deprecation.

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 a pull request may close this issue.

1 participant