Hi,
Let’s say I have this kind of db:
"users" : [
{
"_id": "7ydsfsdfsdfsdfsdfgPT",
"name" : "robert",
"profile" : [
"status" : true,
......
]
}
{
"_id": "hbztZ5A6jHCHqFgPT",
"name" : "Bernard",
"profile" : [
"status" : true,
......
]
}
{
"_id": "fyztZ5AfgdfgdfgdfgfT",
"name" : "Eric",
"profile" : [
"status" : false,
......
]
}
...
]
I am struggling to find the mongo query which would set all “status” to false. Is it even possible to update all arrays at once?
Thanks
Michael