currentDocument function

FunctionExpression currentDocument()

The document that the enclosing stage is processing, as a map. Useful in Pipeline.define to hand the outer document to a subquery.

Implementation

FunctionExpression currentDocument() => FunctionExpression('current_document');