Skip to content

Commit

Permalink
fix: set useUnifiedTopology to mongo client
Browse files Browse the repository at this point in the history
  • Loading branch information
playerx committed Nov 23, 2019
1 parent cf830d0 commit 5501d11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/getClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { MongoClient } from 'mongodb'
export default async function (connectionString, poolSize = 20) {
const client = new MongoClient(connectionString, {
useNewUrlParser: true,
useUnifiedTopology: true,
poolSize,
})

Expand Down

0 comments on commit 5501d11

Please sign in to comment.