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: docs/30-simple-queries/2-match.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The `<expression>` portion of the $match operator can be any valid MongoDB expre
26
26
First, make sure you select the `books` collection in the Atlas UI.
27
27
<Screenshotsrc="/img/30-simple-queries/select-books-collection.png"url="http://cloud.mongodb.com/"alt="Atlas UI database deployment with the books collection highlighted." />
28
28
29
-
Then, navigate to the `Aggregation` tab and click `Add Stage`.
29
+
Then, navigate to the `Aggregation` tab and click `</> TEXT`.
30
30
<Screenshotsrc="/img/30-simple-queries/new-aggregation.png"url="http://cloud.mongodb.com/"alt="Atlas UI database deployment with aggregation tab highlighted." />
31
31
32
32
Say we want all the books from the year 2010. We can add a `$match` stage to filter the documents from the books collection:
If we need to add more conditions using AND, we can do it with the `$and` operator.
86
86
87
-
If we want all the books with 100 pages with exactly `totalInventory` 2 we can use an `$and` operator. This takes and array of documents with all the conditions that should be true for the AND to succeed:
87
+
If we want all the books with 100 pages with exactly `totalInventory` 2 we can use an `$and` operator. This takes an array of documents with all the conditions that should be true for the AND to succeed:
0 commit comments