Skip to content

Commit

Permalink
Merge pull request #9332 from moander/patch-1
Browse files Browse the repository at this point in the history
Updated connect example to avoid deprecation warnings
  • Loading branch information
vkarpov15 committed Aug 22, 2020
2 parents 1256d77 + 49057fa commit b1bf6f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -72,7 +72,9 @@ Both `connect` and `createConnection` take a `mongodb://` URI, or the parameters
```js
await mongoose.connect('mongodb://localhost/my_database', {
useNewUrlParser: true,
useUnifiedTopology: true
useUnifiedTopology: true,
useFindAndModify: false,
useCreateIndex: true
});
```

Expand Down

0 comments on commit b1bf6f0

Please sign in to comment.