MongoDB\Driver\CursorInterface::getId
(mongodb >=1.6.0)
MongoDB\Driver\CursorInterface::getId — Returns the ID for this cursor
Description
Returns the ID for this cursor, which uniquely identifies the cursor on the server.
Parameters
This function has no parameters.
Return Values
Returns the ID for this cursor.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
Changelog
| Version | Description |
|---|---|
| PECL mongodb 1.20.0 | Added MongoDB\BSON\Int64 to the tentative return type for this method. MongoDB\Driver\CursorId will be removed from the return type in version 2.0. |
See Also
- MongoDB\Driver\Cursor::getId() - Returns the ID for this cursor
- MongoDB\Driver\CursorId
- MongoDB\BSON\Int64
↑ and ↓ to navigate • Enter to select • Esc to close • / to open