1
「如何刪除從結構嵌套數組‘帳戶’的單個元素(顯示的圖像也)蒙戈分貝。我能做到使用$拉法呢?任何一個知道請分享你的想法「。如何刪除嵌套數組元素蒙戈Db的
"associatedAccounts" : [
{
"organizationId" : "5808ba773fe315441b9e0a9e",
"_id" : ObjectId("5808bc0c3fe315441b9e0b1a"),
"accounts" : [
"5808baf33fe315441b9e0aa7",
"5808baf33fe315441b9e0aa8",
"5808baf33fe315441b9e0aa1"
]
},
{
"organizationId" : "5808ba773fe315441b9e0a9f",
"_id" : ObjectId("5808bc0c3fe315441b9e0b1b"),
"accounts" : [
"5808baf33fe315441b9e0aa3",
"5808baf33fe315441b9e0aa2",
"5808baf33fe315441b9e0aa5",
"5808baf33fe315441b9e0aa6"
]
}
]
https://stackoverflow.com/editing-help –