Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

cursor.hasNext()

cursor.hasNext()
Returns:Boolean.

cursor.hasNext() returns true if the cursor returned by the db.collection.find() query can iterate further to return more documents.