Tell us what’s happening:
Describe your issue in detail here.
Your project link(s)
solution: https://replit.com/@crophone/boilerplate-mongomongoose
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Challenge: Create and Save a Record of a Model
Link to the challenge:
nibble
2
Hi @Crophone
Are you sure you are connected to the database?
I am not sure, but I pass the first two task using the code below. So I think it’s ok.
mongoose.connect('mongodb://localhost:27017/myapp',{ useNewUrlParser: true, useUnifiedTopology: true });
Should I connect to the Mongo Atlas?
I have connected the database, but I don’t know why I can’t pass the third task, Is there any thing wrong with my code ?
nibble
5
Were you using a local instance of Mongodb? I suggest you connect to mongodb atlas.
system
Closed
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.