SASANDEEP ANUMULAindw.hashnode.dev·Mar 15, 2022 · 2 min readDataWeave : filterObject()filterObject () : filterObject always works on Objects. It Iterates over key-value pairs in an object and applies a conditional expression that returns only matching key value pairs, filtering out the unmatched key value pairs. The conditional exp...00
SASANDEEP ANUMULAindw.hashnode.dev·Mar 7, 2022 · 2 min readDataWeave : mapObject()mapObject() : It transforms an Object to a new Object. mapObject is used when we want to change the keys and/or values on an Object to be a different object. It does this by iterating over each key/value pair in the object and applying a transformat...00
SASANDEEP ANUMULAindw.hashnode.dev·Mar 4, 2022 · 1 min readDataWeave : map()map() : The map is a function in Dataweave which iterates over the items in an array and outputs them into a new array. map(item,index) : item (default $): it represents the element in the input array list. index (default $$) : it represents...00
SASANDEEP ANUMULAindw.hashnode.dev·Dec 1, 2021 · 2 min readDataWeave : Equality operator (~=)Equality Operator (~=): Equality operator that tries to coerce one value to the type of the other when the types are different. Use Case : Equality operator is more useful whenever we need to compare two values which are in different types. ~= opera...00
SASANDEEP ANUMULAindw.hashnode.dev·Sep 27, 2021 · 2 min readDataWeave - Filter (short-cut)filter(Array, (item: T, index: Number) -> Boolean): Array Filter in dataweave used to return the matching values as per the expression applied. It always iterates over an array and returns the array of elements those satisfies the expression. The exp...00