Answers for "{ useUnifiedTopology: true }"

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
0

{ useUnifiedTopology: true }

// for depreacation warning and suggestion to include { useUnifiedTopology: true }
const mongoose = require("mongoose");
mongoose.connect("mongodb://localhost:27017/dbName", {
    useNewUrlParser:true,
    useUnifiedTopology: true
});
Posted by: Guest on May-27-2021

Code answers related to "{ useUnifiedTopology: true }"

Code answers related to "Javascript"

Browse Popular Code Answers by Language