Mongo-Mongoose/Create a model

Greetings.

I am trying to create a model in mongodb but running the tests is giving the error:

Creating an instance from a mongoose schema should succeed

solution: https://replit.com/@iitdelhi2017/boilerplate-mongomongoose

Google Chrome on Windows 10 Pro version 20H2

Challenge: Create a Model

Link to the challenge:

Requesting for guidance.
Thank You

Hi @digipunk !

This was driving me crazy because your code looked correct.

But you have a spelling error here

 favouriteFoods: [String]

It should be

favoriteFoods: [String]

Ditch the u and it should pass now.

Hope that helps!

1 Like

Thanks a lot! It worked.
But checking variable’s spelling? Looks like I need to learn a lot.

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