MongoDB\Driver\Cursor::next

Advances the cursor to the next result

説明

public void MongoDB\Driver\Cursor::next()

パラメータ

この関数にはパラメータはありません。

戻り値

Moves the current position to the next element in the cursor.

エラー / 例外

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
  • Throws MongoDB\Driver\Exception\ConnectionException if connection to the server fails (for reasons other than authentication).
  • Throws MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails.

参考

  • Iterator::next