Category: Dataweave
-
DataweaveFunctions in DataWeave 2.0
You can define your own DataWeave functions using the fun declaration in the header of a DataWeave script.
November 27, 2021
-
DataweaveNamed Functions
We create functions in the declarations section of the script using the fun keyword. This associates a set of functionality…
November 27, 2021
-
DataweaveLambdas Function
DataWeave provides multiple ways to create functions. Just like we have named functions, we have functions without names, called lambdas.
November 27, 2021
-
DataweaveFunctions as Values
In other words, lambdas become useful when you want to pass functions as arguments to other functions, or return a…
November 27, 2021
-
DataweaveInfix Notation
This type of notation is referred to as infix since the operator is in between the two operands that it…
November 27, 2021
-
Dataweave$, $$, $$$ Syntax
For functions that DataWeave provides, you can represent the first, second, and third arguments of the passed lambda as $,…
November 27, 2021
-
DataweaveArrays (dw::core::Arrays)
DataWeave 2.0 makes it easier to define an array with a range (" to ").
November 28, 2021
-
DataweaveThe filter Function (and Function Type Signatures) In DataWeave Mule 4
This function can be applied to an array. It iterates the array and matches the values with the expression. The…
November 28, 2021
-
DataweaveThe map Function In DataWeave Mule 4
Iterates over items in an array and outputs the results into a new array.
November 28, 2021
-
DataweaveThe distinctBy Function In DataWeave Mule 4
This function is useful for when you need to remove duplicate items from an Array.
November 28, 2021
-
DataweaveThe groupBy Function In DataWeave Mule 4
This function is useful for grouping together items in an array based on some value that is generated from each…
November 28, 2021
-
DataweaveThe reduce Function In DataWeave Mule 4
Reduce function is used to do any computation while iterating on an array, so the computation result is not lost…
November 29, 2021