To use the new Server Discover and Monitoring engine, pass option { us eUnifiedTopology: true } to the MongoClient constructor. code example
Example: DeprecationWarning: current Server Discovery and Monitoring engine is deprecated,
mongoose.connect("paste db link", {useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true });