MongoDB - Create a Model (Not Passing)

I’ve spent hours testing so many potential reasons for why it’s not passing. Could someone help me out :frowning:
All it says is “Creating an instance from a mongoose schema should succeed”

My replit:
boilerplate-mongomongoose - Replit

It was part of the existing code from the imported github link that freecodecamp provided. I figured I shouldn’t delete anything that came with it or it might break the tests.

Try this:

[SOLUTION REDACTED]

The export seems to be referring to a “personModel” not a “personSchema” like the hint showed us. I changed the variable names and it gave me a pass. But look, I’m literally at the beginning, don’t take my word for it, this could’ve been a fluke– but finding out is the thrill of learning :slight_smile:

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