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

I get this error when using .findByIdAndUpdate #10297

Closed
byacar opened this issue May 26, 2021 · 3 comments · Fixed by #10298
Closed

I get this error when using .findByIdAndUpdate #10297

byacar opened this issue May 26, 2021 · 3 comments · Fixed by #10298

Comments

@byacar
Copy link

byacar commented May 26, 2021

(node:28) [MONGODB DRIVER] DeprecationWarning: collection.findOneAndUpdate option [returnOriginal] is deprecated and will be removed in a later version.

@kakarot-dev
Copy link

#10285 and #10289

@byacar
Copy link
Author

byacar commented May 26, 2021

Even though I follow these procedures, the problem persists.

@byacar
Copy link
Author

byacar commented May 27, 2021

If updateOne is used instead of findByIdAndUpdate, the problem is fixed.

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.

3 participants