Server Discovery And Monitoring engine is deprecated

后端 未结 23 1186
执笔经年
执笔经年 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:00

    This solved my problem.

     const url = 'mongodb://localhost:27017';
    
     const client = new MongoClient(url, {useUnifiedTopology: true});
    

提交回复
热议问题