Skip to content

Commit 76a8fa7

Browse files
committed
Added new option MongoClient constructor.
1 parent bc91ed5 commit 76a8fa7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/mongo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ module.exports = () => {
1111
{
1212
keepAlive: true,
1313
reconnectTries: Number.MAX_VALUE,
14-
useNewUrlParser: true
14+
useNewUrlParser: true,
15+
useUnifiedTopology: true
1516
},
1617
err => {
1718
let dbStatus = ''

0 commit comments

Comments
 (0)