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
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,13 @@ The `<expression>` portion of the $match operator can be any valid MongoDB expre
20
20
21
21
## Matching book documents
22
22
23
-
<TabsgroupId="aggregations-year">
23
+
<TabsgroupId="aggregations">
24
24
<TabItemvalue="atlas"label="Atlas UI">
25
25
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:
@@ -58,7 +58,7 @@ The `<expression>` portion of the $match operator can be any valid MongoDB expre
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:
Copy file name to clipboardExpand all lines: docs/30-simple-queries/3-project.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ A document from the `books` collection looks like:
62
62
If we're interested just in the titles, we can use `$project` to select just the fields we're interested in. As an example, to get just the book's title and year we'll write:
Copy file name to clipboardExpand all lines: docs/40-using-arrays/2-search-inside-objects-in-arrays.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# 👐 Searching inside Objects in arrays
2
2
3
-
In our books we're using the [Attribute Pattern](https://www.mongodb.com/developer/products/mongodb/attribute-pattern/) to have different attributes in our documents. As we can see in the [sample doc](/docs/simple-queries/project) we have an `attributes` array, containing several objects, each with the same structure:
3
+
In the books collection, we're using the [Attribute Pattern](https://www.mongodb.com/developer/products/mongodb/attribute-pattern/) to store different attributes in our documents. As we can see in the [sample doc](/docs/simple-queries/project), we have an `attributes` array, containing several objects, each with the same structure:
0 commit comments