2, 解决方法
在使用mongose时全局设置
mongoose.set(‘useFindAndModify‘, false)
node - DeprecationWarning: Mongoose: `findOneAndUpdate()` and `findOneAndDelete()` without the `use
原文:https://www.cnblogs.com/500m/p/12004083.html