Hey Team, I want to get all the Subcustomers based on top level parent or get all parent and subcustomers to all hierarachy in single array, meaning if there are 5 parent customers then get 5 arrays. or get one by one array in Reduce function.
tried many ways but not working
Kindly help or guide! right now using map/reduce and passing top level parent from getInput to map and doing operation in reduce