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/107.0.0.0 Safari/537.36 Edg/107.0.1418.35
Challenge: MongoDB and Mongoose - Install and Set Up Mongoose
Link to the challenge: