node:2558) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated code example
Example: DeprecationWarning: current Server Discovery and Monitoring engine is deprecated,
mongoose.connect(uri, { useNewUrlParser: true,useUnifiedTopology:true });
mongoose.createConnection(uri, { useNewUrlParser: true });