0
假設我有三個數組嵌套在文檔中,如下所示,我知道所有的索引。我將如何添加另一個元素到第三個數組中,在這個例子中是「array3」?我不能使用位置運算符,但是當你知道這些索引時,是否有更新/推送的方法?添加到MongoDB中的嵌套數組
"name1": "foo1",
"array1": [
{
name2: "foo2",
"array2" : [
{
"name3" : "foo3",
"array3": [
{
data : "ImData"
}
]
}
]
]