DataWeave Examples Conditionally Reduce a List Via a Function Conditionally Reduce a List through a Function This DataWeave example flattens the input to something simpler. For each element in the input, it conditionally includes a contentTypes field only in case it has any values. It then rearr...