Exam4Training

What is the output of Dataweave Map operator?

What is the output of Dataweave Map operator?
A . Map
B. Object
C. String
D. Array

Answer: D

Explanation:

Returns an array that is the result of applying a transformation function (lambda) to each of the elements.

MuleSoft Doc

Ref: https://docs.mulesoft.com/mule-runtime/4.3/dataweave-cookbook-map The map operator is a function in Dataweave which iterates over the items in an array and outputs them into a new array. It basically accepts input as a list of items in an array and manipulates the items in the array in order to form a new array as an output. I have created below chart for your easier understanding:

Table

MuleSoft MCD-Level-1 : Practice Test Description automatically generated

Exit mobile version