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/40-using-arrays/20-simple-match-array.mdx
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@ import TabItem from '@theme/TabItem';
3
3
4
4
# 👐 Simple Arrays
5
5
6
-
## 👐 Get all the Science Fiction Books
6
+
## 👐 Get all the science fiction books
7
7
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:
9
9
10
10
<TabsgroupId="aggregations">
11
11
<TabItemvalue="atlas"label="Atlas UI">
@@ -40,7 +40,7 @@ Remember that will include any book that has any other genre as long as it has `
40
40
41
41
## 👐 Find all the books that belong at least to both genres "Fiction" and "Science Fiction"
42
42
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:
44
44
45
45
<TabsgroupId="aggregations">
46
46
<TabItemvalue="atlas"label="Atlas UI">
@@ -108,7 +108,7 @@ db.books.aggregate([{
108
108
109
109
## 👐 Find all the books that belong only to the genres "Fiction" and "Science Fiction"
110
110
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.
112
112
113
113
<TabsgroupId="aggregations">
114
114
<TabItemvalue="atlas"label="Atlas UI">
@@ -145,7 +145,7 @@ db.books.aggregate([
145
145
</TabItem>
146
146
</Tabs>
147
147
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:
0 commit comments