Skip to content

Commit bd80c06

Browse files
committed
Fixed cursor answer
1 parent 61060ae commit bd80c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ cursor.itcount()
4242
<div>
4343

4444
```js
45+
// as db.books.aggregate([]) returns a cursor we can just call itcount() on it
4546
db.books.aggregate([]).itcount()
46-
it
4747
```
4848
</div>
4949
</details>

0 commit comments

Comments
 (0)