$arrayElemAt
Last updated
Last updated
$arrayElemAt
operator returns you an item inside an array using it's index. You can use this in any .
<array_obj>
It can also be a Magical Autocomplete.
true
<index>
true
<object>
- Returns the object at the defined index. The object type can be anything present in the array.
The above expression returns 2.
Let's say we have declared a variable tempArr
in our API flow, which has an array value of ["Hello", "World", "Here"]
currently.
The above expression would resolve to a result of Here.
The <array_obj>
expression can be any valid as long as it resolves to a list/array.
The <index>
expression can be any valid as long as it resolves to a number.