kmongo / org.litote.kmongo.coroutine / CoroutineCollection / findAndCast

findAndCast

fun <reified T : Any> findAndCast(filter: Bson = EMPTY_BSON): CoroutineFindPublisher<T> (source)

Finds all documents in the collection.

Parameters

filter - the query filter

Parameters

Mongodb
.driver.manual tutorial/query-documents/ Find

fun <reified T : Any> findAndCast(clientSession: ClientSession, filter: Bson): CoroutineFindPublisher<T> (source)

Finds all documents in the collection.

Parameters

clientSession - the client session with which to associate this operation

filter - the query filter

Parameters

Mongodb
.driver.manual tutorial/query-documents/ Find

Mongodb
.server.release 3.6

Since
1.7