Use array values as path to match documents

Hi @Ruben_FS ,

Could you give us a real example ?
It’s not easy to provide answers based on an abstract one.

If the properties are dynamic, the $objectToArray aggregation stage could be a good idea