mongoose-sequence icon indicating copy to clipboard operation
mongoose-sequence copied to clipboard

the `useFindAndModify` option set to false are deprecated

Open dvirben123 opened this issue 3 years ago • 3 comments

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?

dvirben123 avatar Dec 23 '20 08:12 dvirben123

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

ramiel avatar Jan 13 '21 08:01 ramiel

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

koraykural avatar Sep 25 '21 19:09 koraykural

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

ramiel avatar Sep 25 '21 20:09 ramiel