I am trying to create the model for my mongodb database using mongoose. This is what I am trying to do:
var Class = mongoose.model(\'Class\', {className: St
Explicitly defining the type rule on a property called type is allowed and won't throw an error. like this:
type: {type: String}