coderz.py

Keep Coding Keep Cheering!

pluck function in DataWeave 2.0 (mulesoft)

The pluck operator is useful for mapping the object into the array, and it returns the array of values, keys, and indexes of the object.

December 2, 2021 | Dataweave, Mule 4, Mulesoft | No comments

mapObject function in DataWeave 2.0 (mulesoft)

We use mapObject when we want to change the keys and/or values on an Object to be something else.

December 1, 2021 | Dataweave, Mule 4, Mulesoft | No comments

filterObject function in DataWeave 2.0 (mulesoft)

The filterObjectoperator iterates over a list of key-value pairs in an object and applies an expression that returns only matching objects, filtering out the rest from the output. The expression must return true or false.

November 30, 2021 | Dataweave, Mule 4, Mulesoft | No comments

Working with Objects

It processes both keys and values as a tuple.

November 30, 2021 | Dataweave, Mule 4, Mulesoft | No comments

The 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 during iteration.

November 29, 2021 | Dataweave, Mule 4, Mulesoft | No comments

The 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 item in the array.

November 28, 2021 | Dataweave, Mule 4, Mulesoft | No comments

The distinctBy Function In DataWeave Mule 4

This function is useful for when you need to remove duplicate items from an Array.

November 28, 2021 | Dataweave, Mule 4, Mulesoft | No comments

The map Function In DataWeave Mule 4

Iterates over items in an array and outputs the results into a new array.

November 28, 2021 | Dataweave, Mule 4, Mulesoft | No comments

The 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 output of the filter function is an array with the matching values.

November 28, 2021 | Dataweave, Mule 4, Mulesoft | No comments

Arrays (dw::core::Arrays)

DataWeave 2.0 makes it easier to define an array with a range (” to “).

November 28, 2021 | Dataweave, Mule 4, Mulesoft | No comments

Advertisement