fix: #7919, add useUnifiedTopology

This commit is contained in:
Barış Soner Uşaklı
2019-09-21 18:44:41 -04:00
parent bbc2e95688
commit 910b9b8864

View File

@@ -50,6 +50,7 @@ connection.getConnectionOptions = function (mongo) {
autoReconnect: true,
connectTimeoutMS: 90000,
useNewUrlParser: true,
useUnifiedTopology: true,
};
return _.merge(connOptions, mongo.options || {});