-
Book Overview & Buying
-
Table Of Contents
MuleSoft for Salesforce Developers - Second Edition
By :
In this chapter, we learned that DataWeave is a functional programming language and that a script has two sections: a header and a body. In the header, we keep global variables or functions, and additional directives to specify input, output, DataWeave version, and other information. In the body, we write the code that will be executed.
Then, we learned two different ways to add comments to our code: in a single line (with //) or in multiple lines (with /*…*…*/).
There are simple, composite, and complex data types. However, we only listed the simple (string, Boolean, number, regex, null, date, and time-related) and composite (array and object) ones to understand the basic or most used types.
We also listed some of the most popular data formats, such as CSV, DW, Java, JSON, and XML, to get a better understanding of what these formats look like and how they’re used in DataWeave to transform data.
Afterward, we learned about several operators and...