MongoDB and Mongoose - Create and Save a Record of a Model

Tell us what’s happening:
Describe your issue in detail here.
I’m getting thiserror in my cosole and it’s preventing me from moving ahead
Link : boilerplate-mongomongoose - Replit
Your code so far

Your browser information:

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

Challenge: MongoDB and Mongoose - Create and Save a Record of a Model

Link to the challenge:

Thanks for replying…

I have enable it the read/write permissions!

Please…send your URI without your password!

This is how i connected my mongoose
image

Your connection string most likely doesn’t contain the correct name and password.

Make sure you did not include the <> part of the password placeholder you get with the connection string.

mongodb+srv://someName:somePassword@someCluster.unknow.mongodb.net/someDatabase?retryWrites=true&w=majority

So you are saying that I should remove the greater than and lesser than sign from my password?

Yes, they are not part of the password. They are just in the placeholder to denote the location of the password.

Thanks so much!
It worked

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