khanh_tran
4 years agoNew Contributor III
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?
- 4 years ago
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 -