nerdexam
MuleSoft

MCD-LEVEL-1 · Question #162

What is the output of Dataweave Map operator?

The correct answer is D. Array. Returns an array that is the result of applying a transformation function (lambda) to each of the 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…

DataWeave Transformations

Question

What is the output of Dataweave Map operator?

Exhibit

MCD-LEVEL-1 question #162 exhibit

Options

  • AMap
  • BObject
  • CString
  • DArray

How the community answered

(33 responses)
  • B
    6% (2)
  • C
    3% (1)
  • D
    91% (30)

Explanation

Returns an array that is the result of applying a transformation function (lambda) to each of the 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:

Topics

#DataWeave#map operator#array output#transformations

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice