子文档(sub docs)

原文:Sub Docs 翻译:小虾米(QQ:509129) 进度:未完成

sub docs

Sub-documents are docs with schemas of their own which are elements of a parents document array:

var childSchema = new Schema({ name: 'string' });

var parentSchema = new Schema({
  children: [childSchema]
})

Last updated