📜  mong db 连接错误 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:16.705000             🧑  作者: Mango

代码示例1
// for mongodb atlas
mongoose.connect(
  "mongodb+srv://:@cluster0.88kbv.mongodb.net/?retryWrites=true&w=majority",
  {
    useNewUrlParser: true,
    useUnifiedTopology: true,
    useCreateIndex: true,
    useFindAndModify: false,
  }
);