xxxxxxxxxx
const mongoose = require("mongoose");
const SubSchema = mongoose.Schema({
// your subschema content
}, { _id : false });
const Schema = mongoose.Schema({
// schema content
SubSchemas : [SubSchema]
});
const model = mongoose.model('collection', Schema);