Skip to content

Commit 2e877cc

Browse files
committed
Add page for count_and_keep_open
1 parent 7916a10 commit 2e877cc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Retrieve the total number of documents of the cursor, keeping it open.
2+
3+
This method ignores `skip` and `limit` settings.
4+
5+
## Syntax
6+
7+
```
8+
let cursor = #db.f(query, projection)
9+
cursor.count_and_keep_open()
10+
```
11+
12+
### Parameters
13+
14+
No parameters.
15+
16+
### Return
17+
18+
The total number of documents of this cursor, as a number.
19+
20+
## Cursor State
21+
22+
This function keeps the cursor open.
23+
24+
Try [count](./count) for a variant of this function that automatically closes the cursor.

0 commit comments

Comments
 (0)