diff --git a/nodeJS/authentication/authentication_basics.md b/nodeJS/authentication/authentication_basics.md index 55e5d8dceaf..d6c415c8bef 100644 --- a/nodeJS/authentication/authentication_basics.md +++ b/nodeJS/authentication/authentication_basics.md @@ -50,7 +50,7 @@ const mongoose = require("mongoose"); const Schema = mongoose.Schema; const mongoDb = "YOUR MONGO URL HERE"; -mongoose.connect(mongoDb, { useUnifiedTopology: true, useNewUrlParser: true }); +mongoose.connect(mongoDb); const db = mongoose.connection; db.on("error", console.error.bind(console, "mongo connection error"));