Aggregation $project stage should support $slice operator on array fields similar to $slice in projection and syntax similar to aggregation $substr operator:
The above would take 4 elements from oldarray starting at position 10 (akin to "skipping first ten elements, as position is 0 based).
If I have a document with an array of values in it, I would like to be able to project a slice of those values while aggregating.
$project with a $slice should work as expected:
results in a pipelined document =>
Similarly, the remainder of the existing $slice syntax should work as expected.