Use array values as path to match documents

The problem is that properties into field are dynamic. That’s the hard part of the query, I guess. The structure I wrote above is just an example. field has a variable number of keys, as well as subfield1. And the names of subfieldN', and subsubfieldN` are dynamics, so I cannot hardcoded it in the query.