Answers for "pass option { useUnifiedTopology: true } to the MongoClient constructor."

4

DeprecationWarning: current Server Discovery and Monitoring engine is deprecated,

mongoose.connect("paste db link", {useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true });
Posted by: Guest on May-21-2020
2

DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.

mongoose.connect(mongoConnectionString, {useNewUrlParser: true, useUnifiedTopology: true});
Posted by: Guest on February-13-2020
0

To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect

MongoClient.connect("mongodb://localhost:27017/YourDB", { useNewUrlParser: true })
Posted by: Guest on April-03-2020
0

{ use UnifiedTopology: true }

mongoose.connect("mongodb://localhost:27017/NAME", { useUnifiedTopology: true, useNewUrlParser: true });
Posted by: Guest on July-08-2020

Code answers related to "pass option { useUnifiedTopology: true } to the MongoClient constructor."

Code answers related to "Javascript"

Browse Popular Code Answers by Language