MongoDB and Mongoose - Install and Set Up Mongoose

Tell us what’s happening:

After i have follwed the steps i got the error message

(node:26568) [DEP0170] DeprecationWarning: The URL mongodb://name:notmypassword@cluster0-shard-00-00.rfuez.mongodb.net:27017,cluster0-shard-00-01.rfuez.mongodb.net:27017,cluster0-shard-00-02.rfuez.mongodb.net:27017/fcc-mongodb-and-mongoose?authSource=admin&replicaSet=atlas-3qygtg-shard-0&retryWrites=true&w=majority&appName=Cluster0&ssl=true is invalid. 

Future versions of Node.js will throw an error.
(Use `node --trace-deprecation ...` to s

###Your project link(s)

solution: http://localhost:3000

Your browser information:

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

Challenge Information:

MongoDB and Mongoose - Install and Set Up Mongoose

It is just a deprecation warning. If your code isn’t passing, that shouldn’t be the reason.

If you need help with your code, we have to see it. Post a link to a repo with your code.


Also, I will remove your credentials from your connection string in your post.

I have seen the answer, i was calling the myApp.js instead of server.js.