Skip to content

Commit 01bc7c0

Browse files
committed
DOCS-11150: lookup blurb for let variables
1 parent 5bf9672 commit 01bc7c0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/reference/operator/aggregation/lookup.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,15 @@ The :pipeline:`$lookup` takes a document with the following fields:
184184
document fields, and then reference the variables in the stages
185185
in the ``pipeline``.
186186

187-
.. note::
187+
To access the ``let`` variables in the ``pipeline``, use the
188+
:query:`$expr` operator.
188189

189-
You cannot access aggregation variables in the
190-
:pipeline:`$match` stage which uses the standard MongoDB
191-
query operators.
190+
.. note::
192191

192+
The ``let`` variables are accessible by the stages in the
193+
``pipeline``, including additional :pipeline:`$lookup` stages
194+
nested in the ``pipeline``.
195+
193196
* - ``as``
194197

195198
- Specifies the name of the new array field to add to the input

0 commit comments

Comments
 (0)