We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
model.findAndModify()
1 parent 37bf296 commit 0539758Copy full SHA for 0539758
test/utils/mongoose-connect.js
@@ -7,7 +7,7 @@ function mongooseConnect() {
7
return new P((resolve, reject) => {
8
mongoose.connect(
9
'mongodb://localhost:27017/forest-test',
10
- { useNewUrlParser: true, useUnifiedTopology: true },
+ { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false },
11
);
12
13
const db = mongoose.connection;
0 commit comments