我已經文檔:變化值
{
"_id" : ObjectId("5152ba0708c164359d5ca616"),
"info": "Some interesting information.",
"elements" : [
{
"status" : "accepted",
"id" : "10"
},
{
"status" : "waiting",
"id" : "20"
},
{
"status" : "accepted",
"id" : "30"
}
]
}
我怎樣才能修改「身份」到「接受」,其中「狀態」是「等待」和「ID」是20?
您不想同時檢查狀態和ID嗎? – Devesh 2013-03-28 12:58:37