Tente
positional all
$[] variante. Algo como
db.runCommand({
update: "survey",
updates: [
{
q: {},
u: {
$pull: {
"results.$[].items.$[].comments": { "id": "123456" }
}
}
}
]
})
positional all
$[] variante. db.runCommand({
update: "survey",
updates: [
{
q: {},
u: {
$pull: {
"results.$[].items.$[].comments": { "id": "123456" }
}
}
}
]
})