MongoDB and Mongoose - Create a Model

Tell us what’s happening:

Error is:
Failed: Creating an instance from a mongoose schema should succeed

but source looks good for me.

i pressed tips and was reading here:

i see no differences.

Your project link(s)

solution: boilerplate-mongomongoose - Replit

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0

Challenge: MongoDB and Mongoose - Create a Model

Link to the challenge:

Look at favouriteFoods in your Schema, and compare it to the solution code.

Edit: This should have been updated, not sure if it just hasn’t landed yet.

Change favouriteFoods to favoriteFoods


I see the commit on prod-current but the last build looks to be from feb 28 so I guess it just isn’t updated yet.

2 Likes

Yes thanks
the task is different then the solution (now it works). :point_right:
its not updated at the moment ( 23-0311_0447-43 ).
Screenshot_20230311_044933

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