MongoDB and Mongoose Create a Mod

Tell us what’s happening:
Describe your issue in detail here.
evaluation is not successful.

console.log(Person) results in an output line of Model { Person }, but freecodecamp evaulator gives the following message :

// running tests
Creating an instance from a mongoose schema should succeed
// tests completed

Your project link(s)


Your browser information:

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

Challenge: Create a Model

Link to the challenge:

I have created a person instance from the model and assigned it values for name, age, favoriteFoods and am able to print this to the console, but FCC still says creating an instance from a mongoose schema should succeed.

Can you share a link to your code and not the link you are submitting to FCC so we can see what you tried?

I found the solution. I removed ‘retryWrites=true&w=majority’ from the end of the MONGO_URI variable and was able to complete this task.

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