I have an object in my document like this:
revisions: {
<revisionId>: {
...
someProperty: { ... },
},
...
}
I would like to remove someProperty from every nested object in revisions object (i.e. iterate through all the object revisionId keys). I'm asking because if it's not possible I'd rather convert this to an array than do it on the server and possibly overwrite any updates in the mean time.
I tried $unset but I'm only aware of the $[] operator which only works for arrays e.g.
$unset: {
'revisions.$[].someProperty': 1
}
Thanks