Skip to content

Commit d217c61

Browse files
authored
Update 1-empty-aggregation.mdx
1 parent ac67fd2 commit d217c61

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/30-simple-queries/1-empty-aggregation.mdx

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

4-
# 👐 Empty aggregation pipeline
4+
# 👐 Empty Aggregation Pipeline
55

66
## An empty aggregation
77

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:
99

1010
<Tabs groupId="aggregations">
1111

@@ -29,7 +29,7 @@ This code is the equivalent to a `SELECT * FROM AUTHORS`. Returns a [cursor](htt
2929
db.authors.aggregate([])
3030
```
3131

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`.
3333

3434
👐 Return all the documents in the `books` collection and iterate to get the next page of books.
3535

@@ -47,10 +47,10 @@ it
4747
## 🦸‍♂️ Cursor methods
4848

4949
:::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.
5151
:::
5252

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`.
5454

5555
```js
5656
cursor.itcount()

0 commit comments

Comments
 (0)