diff --git a/source/reference/operator/aggregation/lookup.txt b/source/reference/operator/aggregation/lookup.txt index 68c72046ab0..0091f9c56a2 100644 --- a/source/reference/operator/aggregation/lookup.txt +++ b/source/reference/operator/aggregation/lookup.txt @@ -93,8 +93,8 @@ The :pipeline:`$lookup` takes a document with these fields: - .. _lookup-eq-as: Specifies the name of the new array field to add to the input - documents. The new array field contains the matching - documents from the ``from`` collection. If the specified name + documents. The new array field contains the matching documents + from the foreign ``from`` collection. If the specified name already exists in the input document, the existing field is *overwritten*. @@ -211,10 +211,11 @@ The :pipeline:`$lookup` stage accepts a document with these fields: - .. _lookup-join-as: - Specifies the name of the new array field to add to the joined + Specifies the name of the new array field to add to the input documents. The new array field contains the matching documents - from the joined collection. If the specified name already exists - in the joined document, the existing field is overwritten. + from the foreign ``from`` collection. If the specified name + already exists in the input document, the existing field is + *overwritten*. The operation corresponds to this pseudo-SQL statement: @@ -336,10 +337,11 @@ The :pipeline:`$lookup` accepts a document with these fields: - .. _lookup-concise-correlated-subquery-as: - Specifies the name of the new array field to add to the foreign + Specifies the name of the new array field to add to the input documents. The new array field contains the matching documents - from the foreign collection. If the specified name already exists - in the foreign document, the existing field is overwritten. + from the foreign ``from`` collection. If the specified name + already exists in the input document, the existing field is + *overwritten*. The operation corresponds to this pseudo-SQL statement: