Given the schema:
{
_id: ObjectID,
city:
{ units:
{ abc: {},
def: { tuid : String },
...
xxx: { tuid : String }
}
}
I would like to return, for a particular _id
, all the properties of units
who's subproperty tuid
is, for example, 123.
I have searched for information about this but array operations keep popping up instead of what I need.
Thank you.