File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
source/reference/operator/aggregation Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -184,12 +184,15 @@ The :pipeline:`$lookup` takes a document with the following fields:
184
184
document fields, and then reference the variables in the stages
185
185
in the ``pipeline``.
186
186
187
- .. note::
187
+ To access the ``let`` variables in the ``pipeline``, use the
188
+ :query:`$expr` operator.
188
189
189
- You cannot access aggregation variables in the
190
- :pipeline:`$match` stage which uses the standard MongoDB
191
- query operators.
190
+ .. note::
192
191
192
+ The ``let`` variables are accessible by the stages in the
193
+ ``pipeline``, including additional :pipeline:`$lookup` stages
194
+ nested in the ``pipeline``.
195
+
193
196
* - ``as``
194
197
195
198
- Specifies the name of the new array field to add to the input
You can’t perform that action at this time.
0 commit comments