Specifies an integer with a numeric document position relative to the current document in the output.
Optional
default?: anySpecifies an optional default expression to evaluate if the document position is outside of the implicit $setWindowFields stage window. The implicit window contains all the documents in the partition.
Specifies an expression to evaluate and return in the output.
Generated using TypeDoc
Returns the value from an expression applied to a document in a specified position relative to the current document in the $setWindowFields stage partition.