- API Documentation >
- Result Classes >
- MongoDB\ChangeStream::getCursorId()
MongoDB\ChangeStream::getCursorId()
On this page
Definition
-
MongoDB\ChangeStream::getCursorId
Returns the change stream cursor’s ID.
Return Values
A MongoDB\Driver\CursorId object.
Examples
This example reports the cursor ID for a change stream.
The output would then resemble: