MongoDB and Mongoose - Install and Set Up Mongoose

Hello! I’m having a difficult time connecting to my DB using the required formatting that’s suggested. I’ve literally copied and pasted the solution and followed the necessary steps one by one, backtracked to make sure I was doing it correctly then triple checked and I cannot seem to get it to connect. I’ve already made APIs on my own, connected to my own DB through the mongo client. The instructions seem to be outdated because the solution given uses the same method but just without the
{ useNewUrlParser: true, useUnifiedTopology: true } line. I am using rep.lit and there’s no solution involving this, but I believe I have done it correctly. I’ve included a callback to display that the DB is connected in the console. I don’t believe this should affect the outcome.

Your project link(s)

solution: boilerplate-express - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/107.0.1418.35

Challenge: MongoDB and Mongoose - Install and Set Up Mongoose

Link to the challenge:

Thank you for that clarification! I wish the instructions also clarified that I would be using a different boilerplate. The instructions are just general instructions, just like each previous lesson, and didn’t say anything would be new or needed to be used specifically for this lesson so I overlooked them. :sweat:.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.