DeprecationWarning: Mongoose:
findOneAndUpdate () and
findOneAndDelete () without the
useFindAndModify option set to false are deprecated
web oficial: https://mongoosejs.com/docs/deprecations.html
solucionado
archivo de entrada agregado
mongoose.set('useFindAndModify', false)