Consider this document:
{
"id":1,
"name":"A",
"lastName":"AA",
"friends":{
"f1":{"name":"X", "lastName":"XX"},
"f2":{"name":"Y", "lastName":"YY"}
}
}
I would like to search for friend with name "Y", but without knowing that the key is "f2"... the key could be anything. I know that I could set "friends" as an array, but I don't want to do so.