Server Discovery And Monitoring engine is deprecated

后端 未结 23 1273
执笔经年
执笔经年 2020-12-01 00:54

I am using Mongoose with my Node.js app and this is my configuration:

mongoose.connect(process.env.MONGO_URI, {
   useNewUrlParser: true,
   useUnifiedTopol         


        
23条回答
  •  孤街浪徒
    2020-12-01 01:06

    const url = 'mongodb://localhost:27017';
    const client = new MongoClient(url);
    

    Cut the upper 2nd line then Just Replace that's line

    const client = new MongoClient(url, { useUnifiedTopology: true });
    

提交回复
热议问题