class Mongo::ChangeStream::Cursor

Defined in:

cryomongo/change_stream.cr

Instance Method Summary

Instance methods inherited from class Mongo::Cursor

close close, finalize finalize, next next, of(type : T) forall T of

Instance Method Detail

def next : BSON | Iterator::Stop #
Description copied from module Iterator(BSON)

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.


[View source]
def of(type : T) forall T #

Will convert the elements to the Mongo::ChangeStream::Document(T) type while iterating the Cursor.

NOTE see Mongo::Cursor.of


[View source]
def resume_token : BSON | Nil #

The resume_token can be used to create a change stream that will start from this cursor position.


[View source]