You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/reference/operator/aggregation/lookup.txt
+33-33Lines changed: 33 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ $lookup (aggregation)
6
6
7
7
.. meta::
8
8
:keywords: atlas
9
-
:description: Learn about the $lookup aggregation stage, which performs a left outer join to a collection in the same database, and filters in documents from the "joined" collection for processing.
9
+
:description: Learn about the $lookup aggregation stage, which performs a left outer join to a collection in the same database, and filters in documents from the foreign collection for processing.
10
10
11
11
.. contents:: On this page
12
12
:local:
@@ -22,10 +22,10 @@ Definition
22
22
.. versionchanged:: 8.0
23
23
24
24
Performs a left outer join to a collection in the *same* database to
25
-
filter in documents from the "joined" collection for processing. The
25
+
filter in documents from the foreign collection for processing. The
26
26
:pipeline:`$lookup` stage adds a new array field to each input
27
27
document. The new array field contains the matching documents from
28
-
the "joined" collection. The :pipeline:`$lookup` stage passes these
28
+
the foreign collection. The :pipeline:`$lookup` stage passes these
29
29
reshaped documents to the next stage.
30
30
31
31
Starting in MongoDB 5.1, you can use :pipeline:`$lookup` with sharded
@@ -64,7 +64,7 @@ The :pipeline:`$lookup` accepts a document with these fields:
64
64
65
65
.. list-table::
66
66
:header-rows: 1
67
-
:widths: 15 15 70
67
+
:widths: 20 20 80
68
68
69
69
* - Field
70
70
- Necessity
@@ -163,7 +163,7 @@ Equality Match with a Single Join Condition
163
163
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164
164
165
165
To perform an equality match between a field from the input documents
166
-
with a field from the documents of the "joined" collection, the
166
+
with a field from the documents of the foreign collection, the
167
167
:pipeline:`$lookup` stage has this syntax:
168
168
169
169
.. code-block:: none
@@ -210,12 +210,12 @@ For MongoDB examples, see these pages:
210
210
211
211
.. _lookup-syntax-let-pipeline:
212
212
213
-
Join Conditions and Subqueries on a Joined Collection
0 commit comments