cancel
Showing results for 
Search instead for 
Did you mean: 

Need to pick the 1st value

kumar25
New Contributor II

Hi,

I have output from a mapper as below. Want to pick the first Date value.

[
{
“Date”: “2022-12-19T14:50:51.000”,
“Id”: 435345
},
{
“Date”: “2022-12-23T11:22:17.000”,
“Id”: 087696
},
{
“Date”: “2023-01-30T01:20:53.000”,
“Id”: 474372
}
]

Thanks.

1 REPLY 1

alchemiz
Contributor III

$array[0][‘Date’] if the streaming object is an array

If this is a streaming document then you can use the Head snap

Thanks,
MM