findAndCast

inline fun <T : Any> MongoCollection<*>.findAndCast(filter: Bson = EMPTY_BSON): FindFlow<T>

Deprecated

kmongo-dsl: use the official driver find<T>(filter)

Replace with

find<T>(filter)

KMongo 4/5 CoroutineCollection.findAndCast: finds all documents in the collection, mapped to T.


inline fun <T : Any> MongoCollection<*>.findAndCast(clientSession: ClientSession, filter: Bson): FindFlow<T>

Deprecated

kmongo-dsl: use the official driver find<T>(clientSession, filter)

Replace with

find<T>(clientSession, filter)

KMongo 4/5 CoroutineCollection.findAndCast: finds all documents in the collection, mapped to T.