Hi @steevej , thanks for your reply.
I did look at the two, based on my understanding, one is used for aggregation() and the other for find() right? And in any case, i should expect an array of 5 elements instead of 10 when i apply $slice on “$dataArr” right?
Can you provide some explanation as to why line 6 of stage 3 of the aggregation pipeline produces an array of 10 elements when i use $slice: ["$dataArr, 5, 10] and should only give 5 elements.