mongoose-sequence
mongoose-sequence copied to clipboard
the `useFindAndModify` option set to false are deprecated
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?
This is an option you have to pass to mongoose. This plugin doesn't set it anywhere
Same here, I receive it when saving or creating new documents. So, there is no possibility to pass useFindAndModify option.
As above, I think you have to fix this at mongoose level, not for this plugin specifically