Mongoose: `findOneAndUpdate()` and `findOneAndDelete()` without the `useFindAndModify` option set to false are deprecated
Mongoose:不推荐使用未将“useFindAndModify”选项设置为false的“FindAndDupDate()”和“FindAndDelete()”
官方网站:https://mongoosejs.com/docs/deprecations.html
解决方法:在使用Mongoose时,加上mongoose.set('useFindAndModify', false)