Skip to content

Commit

Permalink
Updated connect example to avoid deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
moander committed Aug 15, 2020
1 parent 25cdb95 commit 49057fa
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 49057fa

Please sign in to comment.