- Reference >
mongo
Shell Methods >- Cursor Methods >
- cursor.hasNext()
cursor.hasNext()¶
-
cursor.
hasNext
()¶ Returns: Boolean. cursor.hasNext()
returnstrue
if the cursor returned by thedb.collection.find()
query can iterate further to return more documents.