react项目启动mongodb时,提示如下错误:
DeprecationWarning: Mongoose: `findOneAndUpdate()` and `findOneAndDelete()` without the `useFindAndModify` option set to false are deprecated. See: https://mongoosejs.com/docs/deprecations.html#-findandmodify-
DeprecationWarning: collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead.
解决方法:
Mongoose解决MongoDB弃用警告(DeprecationWarning)
原文:https://www.cnblogs.com/newcapecjmc/p/12827848.html