diff --git a/example/src/network/server.ts b/example/src/network/server.ts index aebec86..1754e76 100644 --- a/example/src/network/server.ts +++ b/example/src/network/server.ts @@ -42,8 +42,6 @@ class Server { this._connection = mongoose.connection const connection = { keepAlive: true, - useCreateIndex: true, - useFindAndModify: false, useNewUrlParser: true, useUnifiedTopology: true } diff --git a/lib/src/functions/express.js b/lib/src/functions/express.js index 63155fb..b487d8e 100644 --- a/lib/src/functions/express.js +++ b/lib/src/functions/express.js @@ -428,8 +428,6 @@ class Server { this._connection = mongoose.connection const connection = { keepAlive: true, - useCreateIndex: true, - useFindAndModify: false, useNewUrlParser: true, useUnifiedTopology: true }