Document outline
doc_info: string wa:[ wa_flag: int ax:[ ax_info: string, de:[ type: int, value: int ] ] ]
At the exit I want to get a list of documents:
id doc_info count of wa where wa_flag in [1,2,3] total count of ax where wa_flag in [1,2,3] total count of de where wa_flag in [1,2,3] de.type == 10 and de.value > 2 de.type == 50 and de.value > 1
My attempt failed at the "total count of ax" step: request , response
Tried to unwind, using unwind, with the flag "preserveNullAndEmptyArrays", but on empty arrays - breaks