Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mong db connect error

// for mongodb atlas
mongoose.connect(
  "mongodb+srv://<username>:<password>@cluster0.88kbv.mongodb.net/<project_name>?retryWrites=true&w=majority",
  {
    useNewUrlParser: true,
    useUnifiedTopology: true,
    useCreateIndex: true,
    useFindAndModify: false,
  }
);
 
PREVIOUS NEXT
Tagged: #mong #db #connect #error
ADD COMMENT
Topic
Name
3+4 =