cursor

open fun cursor(): MongoCursor<T>

Returns a cursor used for iterating over elements of type `T. The cursor is primarily used for change streams.

Note: Care must be taken to ensure the returned MongoCursor is closed after use.

Return

a cursor