cursor

open override fun cursor(): MongoChangeStreamCursor<ChangeStreamDocument<T>>

Returns a cursor used for iterating over elements of type {@code ChangeStreamDocument}. The cursor has a covariant return type to additionally provide a method to access the resume token in change stream batches.

Return

the change stream cursor