Answers for "mongodb deprecated warnings"

2

mongodb deprecated warnings

mongoose.connect(process.env.DATABASE, {
 useNewUrlParser: true,
 useCreateIndex: true,
 useFindAndModify: false,
 useUnifiedTopology: true,
})
.then(() => {
 console.log("DB connected");
})
.catch((err) => console.log(`DB connection Err`, err));
Posted by: Guest on October-07-2021

Code answers related to "mongodb deprecated warnings"

Code answers related to "Javascript"

Browse Popular Code Answers by Language