$arrayElemAt
Last updated
Last updated
$arrayElemAt
operator returns you an item inside an array using it's index. You can use this in any Expression Object.
Field | Description | Required |
---|---|---|
<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.
<array_obj>
The <array_obj>
expression can be any valid expression as long as it resolves to a list/array.
It can also be a Magical Autocomplete.
true
<index>
The <index>
expression can be any valid expression as long as it resolves to a number.
true