From 984a530905b2d11fdcfb9dc4ae1659f592b7bd0b Mon Sep 17 00:00:00 2001
From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Date: Mon, 2 Dec 2019 20:12:27 -0800
Subject: [PATCH] fix(curriculum): added extra mongoose options to prevent log
warnings (#37693)
* fix: added extra mongoose options to prevent log warnings
---
.../install-and-set-up-mongoose.english.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/install-and-set-up-mongoose.english.md b/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/install-and-set-up-mongoose.english.md
index 1348cecfbd..77a6903a1e 100644
--- a/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/install-and-set-up-mongoose.english.md
+++ b/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/install-and-set-up-mongoose.english.md
@@ -7,11 +7,14 @@ forumTopicId: 301540
## Description
-Add mongodb and mongoose to the project’s package.json. Then require mongoose. Store your mLab database URI in the private .env
file as MONGO_URI. Connect to the database using mongoose.connect(<Your URI>)
+Add mongodb and mongoose to the project’s package.json. Then require mongoose. Store your MongoDB Atlas database URI in the private .env
file as MONGO_URI. Connect to the database using the following syntax:
+
+```js
+mongoose.connect(, { useNewUrlParser: true, useUnifiedTopology: true });
+```
+
-## Instructions
-Add mongodb and mongoose to the project’s package.json
. Then require mongoose. Store your mLab database URI in the private .env
file as MONGO_URI
. Connect to the database using mongoose.connect(<Your URI>)