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/1-simple-match-array.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
-
# 👐 Simple Array queries
1
+
# 👐 Simple Array Queries
2
2
3
3
## Find data in arrays
4
4
5
-
A JSON Array can contain scalar values or objects. In our data, `authors` have an array of the books they've authored (their ISBNs). Let's get one author:
5
+
A JSON array can contain scalar values or objects. In our data, `authors` have an array of the books they've authored (their ISBNs). Let's get one author:
6
6
7
7
8
8
```js
9
9
db.authors.aggregate([{$limit:1}])
10
10
```
11
11
12
-
👐 Run this aggregation to get one author
12
+
👐 Run this aggregation to get one author.
13
13
14
-
I got this one (can change depending on the data source you imported)
14
+
I got this one. (It can change depending on the data source you imported.)
15
15
16
16
```js
17
17
{
@@ -35,7 +35,7 @@ db.authors.aggregate([
35
35
])
36
36
```
37
37
38
-
👐 Get book's author name for ISBN `0395623650`:
38
+
👐 Get the book's author name for ISBN `0395623650`:
0 commit comments