class Mongo::ChangeStream::Cursor

Defined in:


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.

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

def resume_token : BSON? #

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