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/30-simple-queries/1-empty-aggregation.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
importTabsfrom'@theme/Tabs';
2
2
importTabItemfrom'@theme/TabItem';
3
3
4
-
# 👐 Empty aggregation pipeline
4
+
# 👐 Empty Aggregation Pipeline
5
5
6
6
## An empty aggregation
7
7
8
-
This code is the equivalent to a `SELECT * FROM AUTHORS`. Returns a [cursor](https://www.mongodb.com/docs/manual/reference/method/js-cursor/) with all documents in the `authors` collection:
8
+
This code is the equivalent of a `SELECT * FROM AUTHORS`. It returns a [cursor](https://www.mongodb.com/docs/manual/reference/method/js-cursor/) with all documents in the `authors` collection:
9
9
10
10
<TabsgroupId="aggregations">
11
11
@@ -29,7 +29,7 @@ This code is the equivalent to a `SELECT * FROM AUTHORS`. Returns a [cursor](htt
29
29
db.authors.aggregate([])
30
30
```
31
31
32
-
We can iterate over the returned cursor and get more documents typing `it`.
32
+
We can iterate over the returned cursor and get more documents by typing `it`.
33
33
34
34
👐 Return all the documents in the `books` collection and iterate to get the next page of books.
35
35
@@ -47,10 +47,10 @@ it
47
47
## 🦸♂️ Cursor methods
48
48
49
49
:::info
50
-
Extra activity, do it if you have extra time or are following at home, won't be covered during the hands-on Lab
50
+
Extra activity! Do it if you have extra time or are following along at home. It won't be covered during the hands-on lab.
51
51
:::
52
52
53
-
A [cursor](https://www.mongodb.com/docs/manual/reference/method/js-cursor/) has several useful methods, for instance we can check the size of the returned cursor with `itcount`
53
+
A [cursor](https://www.mongodb.com/docs/manual/reference/method/js-cursor/) has several useful methods. For instance, we can check the size of the returned cursor with `itcount`.
0 commit comments