Server Discovery And Monitoring engine is deprecated

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

    Use the following code to avoid that error

    MongoClient.connect(connectionString, {useNewUrlParser: true, useUnifiedTopology: true});
    

提交回复
热议问题