Answers for "deprecation warning in mongoose.createConnection()"

5

{ useNewUrlParser: true } to MongoClient.connect. warnning

mongoose.connect("mongodb://localhost:27017/YourDB", { useNewUrlParser: true });
Posted by: Guest on May-13-2020
0

deprecationwarning: mongoose

mongoose.connect("mongodb://localhost/test1", { useNewUrlParser: true, useUnifiedTopology: true });
//test1 is databse name
Posted by: Guest on June-20-2020

Code answers related to "deprecation warning in mongoose.createConnection()"

Code answers related to "Javascript"

Browse Popular Code Answers by Language