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 rearranges this content into a more readable shape. Before you be...