From 2ca7abdf7c7b105d84cbed289c343b6d1b9b1e6d Mon Sep 17 00:00:00 2001 From: Fernando <60452941+Fernando-Lozano@users.noreply.github.com> Date: Mon, 4 Jan 2021 19:57:37 -0600 Subject: [PATCH] Added recommended connection option. "You should set this option to true, except for the unlikely case that it prevents you from maintaining a stable connection." --- docs/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.pug b/docs/index.pug index 133926c9503..a1c0ecb06f2 100644 --- a/docs/index.pug +++ b/docs/index.pug @@ -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.