mongoose schema nester object code example
Example: mongoose nested object without id
var subSchema = mongoose.Schema({
//your subschema content
},{ _id : false });
var subSchema = mongoose.Schema({
//your subschema content
},{ _id : false });