Skip to content

Commit b331038

Browse files
authored
Merge pull request #54 from Meg528/patch-39
Update 20-simple-match-array.mdx
2 parents 23f877b + 23c38c6 commit b331038

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/40-using-arrays/20-simple-match-array.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import TabItem from '@theme/TabItem';
33

44
# 👐 Simple Arrays
55

6-
## 👐 Get all the Science Fiction Books
6+
## 👐 Get all the science fiction books
77

8-
Can I get all books for the genre `Science Fiction`?. Turns out it's quite simple:
8+
Can I get all books for the genre `Science Fiction`? Turns out it's quite simple:
99

1010
<Tabs groupId="aggregations">
1111
<TabItem value="atlas" label="Atlas UI">
@@ -40,7 +40,7 @@ Remember that will include any book that has any other genre as long as it has `
4040

4141
## 👐 Find all the books that belong at least to both genres "Fiction" and "Science Fiction"
4242

43-
If you want to search for all books that have "Fiction" and "Science Fiction", in any order (and possibly other genres) use:
43+
If you want to search for all books that have "Fiction" and "Science Fiction," in any order (and possibly other genres), use:
4444

4545
<Tabs groupId="aggregations">
4646
<TabItem value="atlas" label="Atlas UI">
@@ -108,7 +108,7 @@ db.books.aggregate([{
108108

109109
## 👐 Find all the books that belong only to the genres "Fiction" and "Science Fiction"
110110

111-
In this case, we want books that have both "Fiction" and "Science Fiction" in the genres array _and nothing else_. So we're looking for documents that contain a `genres` array exactly as `['Fiction', 'Science Fiction']`. We're not looking for the individual genres that could be inside the array, instead we are comparing the whole array on each document.
111+
In this case, we want books that have both "Fiction" and "Science Fiction" in the genres array _and nothing else_. So we're looking for documents that contain a `genres` array exactly as `['Fiction', 'Science Fiction']`. We're not looking for the individual genres that could be inside the array. Instead, we are comparing the whole array on each document.
112112

113113
<Tabs groupId="aggregations">
114114
<TabItem value="atlas" label="Atlas UI">
@@ -145,7 +145,7 @@ db.books.aggregate([
145145
</TabItem>
146146
</Tabs>
147147

148-
Here we're comparing the whole array. __Element order is important__. With this comparison you'll get nothing in return:
148+
Here, we're comparing the whole array. __Element order is important__. With this comparison, you'll get nothing in return:
149149

150150
<Tabs groupId="aggregations">
151151
<TabItem value="atlas" label="Atlas UI">

0 commit comments

Comments
 (0)