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
Now Mongoose supports subdocuments, which are the documented way to nest arrays,
var arraySchema = new Schema({ property: String }); var objectSchema = new Schema({ arrays: [arraySchema] });
Sources
http://mongoosejs.com/docs/schematypes.html