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

the useFindAndModify option set to false are deprecated #97

Open
dvirben123 opened this issue Dec 23, 2020 · 3 comments
Open

the useFindAndModify option set to false are deprecated #97

dvirben123 opened this issue Dec 23, 2020 · 3 comments

Comments

@dvirben123
Copy link

Hi,
I am getting the following warning message when starting using your plugin :
Mongoose: findOneAndUpdate() and findOneAndDelete() without the useFindAndModify option set to false are deprecated. See: https://mongoosejs.com/docs/deprecations.html#findandmodify
(Use node --trace-deprecation ... to show where the warning was created)

any chance to get a fix for it?

@ramiel
Copy link
Owner

ramiel commented Jan 13, 2021

This is an option you have to pass to mongoose. This plugin doesn't set it anywhere

@koraykural
Copy link

Same here, I receive it when saving or creating new documents. So, there is no possibility to pass useFindAndModify option.

@ramiel
Copy link
Owner

ramiel commented Sep 25, 2021

As above, I think you have to fix this at mongoose level, not for this plugin specifically

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

No branches or pull requests

3 participants