Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

DeprecationWarning: Mongoose: `findOneAndUpdate()` and `findOneAndDelete()` without the `useFindAndModify` option set to false are deprecated. See: https://mongoosejs.com/docs/deprecations.html#findandmodify

mongoose.connect(uri, { useFindAndModify: false });
Source by mongoosejs.com #
 
PREVIOUS NEXT
Tagged: #option #set #false
ADD COMMENT
Topic
Name
1+6 =