Answers for "mongoose.connect(process.env.DB, { useCreateIndex: true, useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false"

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,

mongoose.connect(uri, { useNewUrlParser: true,useUnifiedTopology:true });
mongoose.createConnection(uri, { useNewUrlParser: true });
Posted by: Guest on November-03-2020

Code answers related to "mongoose.connect(process.env.DB, { useCreateIndex: true, useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false"

Browse Popular Code Answers by Language