diff --git a/lib/databases/mongodb.js b/lib/databases/mongodb.js index 0d8555e..b46054a 100644 --- a/lib/databases/mongodb.js +++ b/lib/databases/mongodb.js @@ -49,6 +49,7 @@ var MongoSessionStore = function (options) { if (isNew) { defaultOpt.autoReconnect = false; defaultOpt.useNewUrlParser = true; + defaultOpt.useUnifiedTopology = true; _.defaults(options.options, defaultOpt); } else { defaultOpt.auto_reconnect = false;