Referens :https://mongoosejs.com/docs/deprecations.html
Lägg till Param :useFindAndModify:false
T.ex. Kod:
mongoose.connect(
MONGODB_URL, {
useFindAndModify: false
},
(err, db) => {
if (err) throw err;
console.log(`MongoDB connected on port ${MONGODB_PORT}`);
}
);