Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant