Server Discovery And Monitoring engine is deprecated

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

    mongoose.connect("DBURL", {useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true },(err)=>{
        if(!err){
             console.log('MongoDB connection sucess');
            }
        else{ 
            console.log('connection not established :' + JSON.stringify(err,undefined,2));
        }
    });
    

提交回复
热议问题