Skip to content

Commit ecdb103

Browse files
authored
Merge pull request #7 from mongodb-developer/ljhaywar-patch-2
Update 2-match.mdx
2 parents 1d335a5 + 4ad24f8 commit ecdb103

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/30-simple-queries/2-match.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The `<expression>` portion of the $match operator can be any valid MongoDB expre
2626
First, make sure you select the `books` collection in the Atlas UI.
2727
<Screenshot src="/img/30-simple-queries/select-books-collection.png" url="http://cloud.mongodb.com/" alt="Atlas UI database deployment with the books collection highlighted." />
2828

29-
Then, navigate to the `Aggregation` tab and click `Add Stage`.
29+
Then, navigate to the `Aggregation` tab and click `</> TEXT`.
3030
<Screenshot src="/img/30-simple-queries/new-aggregation.png" url="http://cloud.mongodb.com/" alt="Atlas UI database deployment with aggregation tab highlighted." />
3131

3232
Say we want all the books from the year 2010. We can add a `$match` stage to filter the documents from the books collection:
@@ -84,7 +84,7 @@ db.books.aggregate([{$match: {pages: 100}}])
8484

8585
If we need to add more conditions using AND, we can do it with the `$and` operator.
8686

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:
8888

8989
<Tabs groupId="aggregations">
9090
<TabItem value="atlas" label="Atlas UI">
@@ -228,4 +228,4 @@ db.books.aggregate([{$match: {pages: 100, year: 2015}}])
228228
</TabItem>
229229
</Tabs>
230230
</div>
231-
</details>
231+
</details>

0 commit comments

Comments
 (0)