From c7a1f513671856255437e51c0a8a0a39d2dc128f Mon Sep 17 00:00:00 2001 From: Randell Dawson Date: Mon, 2 Dec 2019 14:38:57 -0800 Subject: [PATCH] fix: update to match curriculum challenge instructions --- myApp.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/myApp.js b/myApp.js index 42c92b8..3cce76b 100644 --- a/myApp.js +++ b/myApp.js @@ -8,9 +8,12 @@ /** 1) Install & Set up mongoose */ -// 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()` +// Add mongodb and mongoose to the project's package.json. Then require +// mongoose. Store your Mongo Atlas database URI in the private .env file +// as MONGO_URI. Connect to the database using the following syntax: +// +// mongoose.connect(, { useNewUrlParser: true, useUnifiedTopology: true }); + /** # SCHEMAS and MODELS #