Skip to content

Commit

Permalink
Added recommended connection option.
Browse files Browse the repository at this point in the history
"You should set this option to true, except for the unlikely case that it prevents you from maintaining a stable connection."
  • Loading branch information
Fernando-Lozano authored Jan 5, 2021
1 parent 0a25640 commit 2ca7abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ block content
```javascript
// getting-started.js
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test', {useNewUrlParser: true});
mongoose.connect('mongodb://localhost/test', {useNewUrlParser: true, useUnifiedTopology: true});
```

We have a pending connection to the test database running on localhost.
Expand Down

0 comments on commit 2ca7abd

Please sign in to comment.