class

Mongo::ChangeStream::Cursor

Inherits Mongo::Cursor / Iterator / Enumerable / Reference / Object

Instance methods

next

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

Source
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

Source
resume_token

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

Source