mongodb 怎么更改content的值?数据结构是这样的?
{
id:1,
files:[{
filename:'a',
annotationsList:[
{
_id:1,
create:'',
content:''
},
{
_id:2,
create:'',
cotent:'',
}
}]
}]
}
db.test.update({"files.annotationsList._id":1},{$set:{"annotationsList.content":"测试更新"}})