Forum Discussion

khanh_tran's avatar
khanh_tran
New Contributor III
4 years ago
Solved

How to get the first element in doc

I have output doc as the below picture How can I get the first element from the doc?
  • SpiroTaleski's avatar
    4 years ago

    @khanh_tran

    You can either:

    • Use Head Snap with “Number of documents” = 1 and “Documents offset” = 0

    • Use Filter Snap with following expr: snap.in.totalCount == 1

    Regards,
    Spiro Taleski