You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running with the latest version of Mongoose, I get the following warnings:
(node:31651) DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.
(node:31651) DeprecationWarning: collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead.
(node:31651) DeprecationWarning: Mongoose: `findOneAndUpdate()` and `findOneAndDelete()` without the `useFindAndModify` option set to false are deprecated.
Moreover, is good to put into the examples the following options for the mongoose connection:
useCreateIndex: true
in order to avoid the deprecation warning:
DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
Is there any intent to fix these warnings?
The text was updated successfully, but these errors were encountered:
While running with the latest version of Mongoose, I get the following warnings:
Moreover, is good to put into the examples the following options for the mongoose connection:
in order to avoid the deprecation warning:
Is there any intent to fix these warnings?
The text was updated successfully, but these errors were encountered: