kmongo / org.litote.kmongo.rxjava2 / com.mongodb.reactivestreams.client.MongoCollection / find

find

fun <T : Any> MongoCollection<T>.find(filter: String): FindPublisher<T> (source)

Finds all documents that match the filter in the collection.

Parameters

filter - the query filter

Return
the find iterable interface

fun <T : Any> MongoCollection<T>.find(clientSession: ClientSession, filter: String): FindPublisher<T> (source)

Finds all documents that match the filter in the collection.

Parameters

clientSession - the client session

filter - the query filter

Return
the find iterable interface

fun <T : Any> MongoCollection<T>.find(vararg filters: Bson?): FindPublisher<T> (source)

Finds all documents that match the filters in the collection.

Parameters

filters - the query filter

Return
the find iterable interface

fun <T : Any> MongoCollection<T>.find(clientSession: ClientSession, vararg filters: Bson?): FindPublisher<T> (source)

Finds all documents that match the filters in the collection.

Parameters

clientSession - the client session

filters - the query filter

Return
the find iterable interface