Answers for "mongoclient.connect('mongodb://localhost:27017',{usenewurlparser:true})"

5

{ useNewUrlParser: true } to MongoClient.connect. warnning

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

mongo Client.connect ('mongodb://localhost/cursoNode', {useNewUrlParser: true,useUnifiedTopology: true }); .then( conn() => {global.conn = conn.db("cursoNode") }).catch ((error) => { console.log ("error") })

mongoClient.connect ('mongodb://localhost/cursoNode', {useNewUrlParser: true,useUnifiedTopology: true });

.then( conn() => {global.conn = conn.db("cursoNode") }).catch ((error) => {
         console.log ("error")
})
Posted by: Guest on February-01-2021

Code answers related to "mongoclient.connect('mongodb://localhost:27017',{usenewurlparser:true})"

Code answers related to "Javascript"

Browse Popular Code Answers by Language