withDocumentClass

fun <R : Any> withDocumentClass(resultClass: Class<R>): Flow<R>

Returns a MongoIterable containing the results of the change stream based on the document class provided.

Return

the new Mongo Iterable

Parameters

R

the Mongo Iterable type

resultClass

the target document type of the iterable.


inline fun <R : Any> withDocumentClass(): Flow<R>

Returns a MongoIterable containing the results of the change stream based on the document class provided.

Return

the new Mongo Iterable

Parameters

R

the Mongo Iterable type