Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions source/reference/operator/aggregation/lookup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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*.

Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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:

Expand Down