在下面的文档中,我有一个array
名为 imAccounts。我想要update()
那个对象array
。我怎样才能做到这一点?
{
"_id" : ObjectId("503c55da1c192a530b000001"),
"imAccounts" : [
{
"accountType" : "Windows",
"accountName" : "rwqerqw",
"accountPassword" : "erqwerwe"
},
{
"accountType" : "Yahoo",
"accountName" : "rwqerqw",
"accountPassword" : "erqwerwe"
}]
}