Answers for "mongoose connnect"

1

mongoose connect

mongoose.connect('mongodb://localhost:27017/test', {
  useMongoClient: true,
  connectTimeoutMS: 1000
})
Posted by: Guest on August-07-2020
1

node js + mongoose

await mongoose.connect('mongodb://localhost/my_database', {  useNewUrlParser: true,  useUnifiedTopology: true});
Posted by: Guest on August-02-2020

Browse Popular Code Answers by Language