Definição
Return Values
Um objeto MongoDB\Driver\CursorId.
Exemplos
Este exemplo informa o ID do cursor para um change stream.
$uri = 'mongodb://rs1.example.com,rs2.example.com/?replicaSet=myReplicaSet';
$collection = (new MongoDB\Client($uri))->test->inventory;
$changeStream = $collection->watch();
var_dump($changeStream->getCursorId());A saÃda seria então semelhante a:
object(MongoDB\Driver\CursorId)#5 (1) { ["id"]=> int(8462642181784669708)}