Cool intro to schemas! I’ve been revisiting Mongoose recently and still not really sure if there’s a need to name the schema objects, since the only places I would pass them to are their respective model objects. Any thoughts on creating the schema directly inside mongoose.model’s second argument?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Cool intro to schemas! I’ve been revisiting Mongoose recently and still not really sure if there’s a need to name the schema objects, since the only places I would pass them to are their respective model objects. Any thoughts on creating the schema directly inside
mongoose.model
’s second argument?