mongoose sub documents with ids 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 });