Is it possible to find the 'field name' using a regex first and then use that field name to find its value across all documents?
For example, if I have the following structure:
item : Object
- quantity: 50
- size: Object
- h: 20
Ideally, if I want the value of h, I would query item.quantity.size.h ("field.nestedField"). However, I only know the name 'h' but not what it is nested under. Is it possible to retrieve the entire field name (item.quantity.size.h) and its value (20)? I would then like to use that field name to obtain the value from all other documents.