Tell us what’s happening:
It runs fine when I run it in replit but once I submit it in freecodecamp, it releases an error. It does create and save an instance in the database in mongoDB but I’m not sure what the problem is. My code matches that of the hint as well.
Your project link(s)
solution: boilerplate-mongomongoose (3) - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15
Challenge: MongoDB and Mongoose - Create and Save a Record of a Model
Link to the challenge: