count_and_keep_open
Retrieve the total number of documents of the cursor, keeping it open.
This method ignores skip and limit settings.
Syntax
let cursor = #db.f(query, projection)
cursor.count_and_keep_open()
Parameters
No parameters.
Return
The total number of documents of this cursor, as a number.
Cursor State
This function keeps the cursor open.
Try count for a variant of this function that automatically closes the cursor.