class Mongo::ChangeStream::Cursor
- Mongo::ChangeStream::Cursor
- Mongo::Cursor
- Reference
- Object
Defined in:
cryomongo/change_stream.crInstance Method Summary
-
#next : BSON | Iterator::Stop
Returns the next element in this iterator, or
Iterator::Stop::INSTANCE
if there are no more elements. -
#of(type : T) forall T
Will convert the elements to the
Mongo::ChangeStream::Document(T)
type while iterating theCursor
. -
#resume_token : BSON | Nil
The resume_token can be used to create a change stream that will start from this cursor position.
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 | Nil
#
The resume_token can be used to create a change stream that will start from this cursor position.