Skip to content

Commit 3f23189

Browse files
authored
Update 2-match.mdx
1 parent ac67fd2 commit 3f23189

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ The $match operator is used in conjunction with the aggregation framework to fil
1111

1212
## Expressions
1313

14-
The `<expression>` portion of the $match operator can be any valid MongoDB expression. This includes :
14+
The `<expression>` portion of the $match operator can be any valid MongoDB expression. This includes:
1515

16-
* Comparison operators: `eq`, `neq`, `gte`, `lte`, `gt`, `lt`, `in`, `nin`, `exists`
17-
* Regular expressions: regex
18-
* Logical operators: and, or, not
19-
* Subdocuments and arrays: `{ field: <value> }, [ <item>, <item>, ... ]`
16+
* Comparison operators: `eq`, `neq`, `gte`, `lte`, `gt`, `lt`, `in`, `nin`, `exists`.
17+
* Regular expressions: regex.
18+
* Logical operators: and, or, not.
19+
* Subdocuments and arrays: `{ field: <value> }, [ <item>, <item>, ... ]`.
2020

2121
## Matching book documents
2222

@@ -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 a `$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-and">
9090
<TabItem value="atlas" label="Atlas UI">
@@ -150,7 +150,7 @@ db.books.aggregate([{$match: {$and: [{pages: 100}, {year: 2015}]}}])
150150
</div>
151151
</details>
152152

153-
👐 How many are they?
153+
👐 How many are there?
154154

155155
<details>
156156
<summary>Answer</summary>
@@ -205,7 +205,7 @@ db.books.aggregate([{$match: {pages: 100, totalInventory: 2}}])
205205
</Tabs>
206206

207207

208-
👐 Return all the `books` from 2015 that have exactly 100 pages, using the simple $and notation
208+
👐 Return all the `books` from 2015 that have exactly 100 pages, using the simple $and notation:
209209

210210
<details>
211211
<summary>Answer</summary>
@@ -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)