BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
1 / 18 · Module 3 — DataWeave 2.0 Crash Course · filtered: cheatsheet⊞ allnext →

3.22`mapObject`

map transforms arrays.

mapObject transforms objects.

Input:

{
  "firstName": "John",
  "lastName": "Smith"
}

Conceptually, mapObject iterates key/value pairs.

You won't likely need advanced mapObject coding during a developer interview unless DataWeave is a major focus, but know the distinction:

map
→ arrays

mapObject
→ objects