Pass option { useUnifiedTopology: true } to the MongoClient constructor Pass option { useUnifiedTopology: true } to the MongoClient constructor mongoose mongoose