withDocumentClass

abstract fun <TDocument : Any> withDocumentClass(clazz: KClass<out TDocument>): Flow<TDocument>

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

Return

the new Flow

Parameters

clazz

the class to use for the raw result.

the result type