From 7a71788e603cfb389725113fd4663d223c2fda7c Mon Sep 17 00:00:00 2001 From: Nicketa Kumar <30273897+nicks9188@users.noreply.github.com> Date: Fri, 7 Jun 2019 11:15:16 +0530 Subject: [PATCH] Update as ver nodejs v10.16.0 Connection string may also need to be updated according to driver version. --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index aa4e7e9..d4160ec 100644 --- a/app.js +++ b/app.js @@ -12,7 +12,7 @@ mongoose.connect( process.env.MONGO_ATLAS_PW + "@node-rest-shop-shard-00-00-wovcj.mongodb.net:27017,node-rest-shop-shard-00-01-wovcj.mongodb.net:27017,node-rest-shop-shard-00-02-wovcj.mongodb.net:27017/test?ssl=true&replicaSet=node-rest-shop-shard-0&authSource=admin", { - useMongoClient: true + useNewUrlParser: true } );