Is it possible to delete elements from multiple subarrays within a single large array? The structure I'm working with is as follows:
{
"id": {
"$oid": ""
},
"users": [
{
"friends": [
"751573404103999569"
]
},
{
"friends": [
"220799458408005633"
]
}
]
}
I have a friend's ID that needs to be removed from all the "friends" arrays within the "users" array.