deprecation warning in mongoose.createConnection() code example
Example 1: { useNewUrlParser: true } to MongoClient.connect. warnning
mongoose.connect("mongodb://localhost:27017/YourDB", { useNewUrlParser: true });
Example 2: deprecationwarning: mongoose
mongoose.connect("mongodb://localhost/test1", { useNewUrlParser: true, useUnifiedTopology: true });
//test1 is databse name