await mongoose.connect(URL,{ useNewUrlParser: true, useUnifiedTopology: true, // useFindAndModify: false ---> no longer needed });