diff --git a/src/common/getClient.ts b/src/common/getClient.ts index e7b1420..8eabf45 100644 --- a/src/common/getClient.ts +++ b/src/common/getClient.ts @@ -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, })