Probeer positional all
$[] variant.
Iets als
db.runCommand({
update: "survey",
updates: [
{
q: {},
u: {
$pull: {
"results.$[].items.$[].comments": { "id": "123456" }
}
}
}
]
})
Probeer positional all
$[] variant.
Iets als
db.runCommand({
update: "survey",
updates: [
{
q: {},
u: {
$pull: {
"results.$[].items.$[].comments": { "id": "123456" }
}
}
}
]
})