我的猫鼬模型是:
var Schema = new Schema({
code: String,
type: String,
people:{}
}
和项目的数据是:
people :
{
"id":"2342423",
"name":"John"
},
{
"id":"1231231",
"name":"Marry"
}
当我写:
var obj = new Schema({
people:people});
obj.people 是 {}。我哪里错了?