Navigation
This version of the documentation is archived and no longer supported.

cursor.isClosed()

cursor.isClosed()
Returns:Boolean.

cursor.isClosed() returns true if the server has closed the cursor.

A closed cursor may still have documents remaining in the last received batch. Use cursor.isExhausted() or cursor.hasNext() to check if the cursor is fully exhausted.