deprecationwarning: mongoose

JavaScript
mongoose.connect("mongodb://localhost/test1", { useNewUrlParser: true, useUnifiedTopology: true });
//test1 is databse name
Source

Also in JavaScript: