猫鼬种群与对象嵌套
var personSchema = Schema({ _id : Number, name : String, stories : [{ type: Schema.Types.ObjectId, ref: 'Story' }]});var storySchema = Schema({ _creator : { type: Number, ref: 'Person' }, title : String,});
var personSchema = Schema({ _id : Number, name : String, stories : [storySchema]});var storySchema = Schema({ _creator : personSchema, title : String,});