generate id in mongoose array of objects 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 });