XML Attribute Selector (.@myKey) November 21, 2021 Dataweave / Mule 4 / Mulesoft Using .@ without the key name returns an object containing the attributes as key-value pairs.
Range selector (anIndex to anotherIndex) November 21, 2021 Dataweave / Mule 4 / Mulesoft If you need multiple sequential values from an Array, DataWeave allows you to select a range of values with the range selector ([n to m]).
Index Selector ([]) November 21, 2021 Dataweave / Mule 4 / Mulesoft The index selector returns the element at the specified position. It can be applied over an array, object, or string.
Key-Value Pair Selector (.&myKey) November 21, 2021 Dataweave / Mule 4 / Mulesoft The & selector acts on arrays and objects. & retrieves both the keys and values of all matching keys pairs in the current context. These are returned as an object, containing the retrieved keys and values.
Descendants Selector (..) November 21, 2021 Dataweave / Mule 4 / Mulesoft The descendants selector (..) is the perfect tool to use when you need the values for a certain key no matter where they appear in a piece of data.
Multi-Value Selector (.*) November 21, 2021 Dataweave / Mule 4 / Mulesoft The multi-value selector (.*) returns an Array containing any value that matches the key. The values returned are dependent on the key that’s passed in. The multi-value selector works on both Arrays and Objects, but in different ways.
Single-Value Selector November 21, 2021 Dataweave / Mule 4 / Mulesoft The single-value selector (.) allows you to lookup Object values by their key.
Reading Data November 21, 2021 Dataweave / Mule 4 / Mulesoft reading data is just as important, and the features available to do so are just as robust.