Mulesoft

XML Attribute Selector (.@myKey)

Using .@ without the key name returns an object containing the attributes as key-value pairs.

3 years ago

Range selector (anIndex to anotherIndex)

If you need multiple sequential values from an Array, DataWeave allows you to select a range of values with the…

3 years ago

Index Selector ([])

The index selector returns the element at the specified position. It can be applied over an array, object, or string.

3 years ago

Key-Value Pair Selector (.&myKey)

The & selector acts on arrays and objects. & retrieves both the keys and values of all matching keys pairs…

3 years ago

Descendants Selector (..)

The descendants selector (..) is the perfect tool to use when you need the values for a certain key no…

3 years ago

Multi-Value Selector (.*)

The multi-value selector (.*) returns an Array containing any value that matches the key. The values returned are dependent on…

3 years ago

Single-Value Selector

The single-value selector (.) allows you to lookup Object values by their key.

3 years ago

Reading Data

reading data is just as important, and the features available to do so are just as robust.

3 years ago

Creating Data

As you'd expect, the last two are actually composite types, their contents also have type definitions:

3 years ago

SCRIPT ANATOMY

Notice in the script that there are three lines, a line with three dashes, then one more line. The first…

3 years ago