[{
"_id" : ObjectId("579de5ad16944ccc24d5f4f1"),
"dots" :
[
{
"id" : 1,
"location" :
[
{
"lx" : 10,
"ly" : 10
}
]
},
{
"id" : 2,
"location" : [{}]
}
]
}]
Run Code Online (Sandbox Code Playgroud)
上面是json格式的模型(来自mongobooter)让我们说"行",我有_id和dots.id,我想将新对象添加到位置.那怎么能这样做(使用猫鼬)?