cursor.next()

  • cursor. next ( )
Returns:The next document in the cursor returned by the db.collection.find() method. See cursor.hasNext() related functionality.