find

abstract fun find(): FindFlow<TDocument>

Finds all documents in the collection.

Return

the find iterable interface


abstract fun <TResult : Any> find(resultClass: KClass<out TResult>): FindFlow<TResult>

Finds all documents in the collection.

Return

the find iterable interface

Parameters

resultClass

the class to decode each document into

the target document type of the iterable.

abstract fun find(filter: Bson): FindFlow<TDocument>

Finds all documents in the collection.

Return

the find iterable interface

Parameters

filter

the query filter


abstract fun <TResult : Any> find(filter: Bson, resultClass: KClass<out TResult>): FindFlow<TResult>

Finds all documents in the collection.

Return

the find iterable interface

Parameters

filter

the query filter

resultClass

the class to decode each document into

the target document type of the iterable.

abstract fun find(clientSession: ClientSession): FindFlow<TDocument>

Finds all documents in the collection.

Return

the find iterable interface

Since

3.6

Parameters

clientSession

the client session with which to associate this operation


abstract fun <TResult : Any> find(clientSession: ClientSession, resultClass: KClass<out TResult>): FindFlow<TResult>

Finds all documents in the collection.

Return

the find iterable interface

Since

3.6

Parameters

clientSession

the client session with which to associate this operation

resultClass

the class to decode each document into

the target document type of the iterable.

abstract fun find(clientSession: ClientSession, filter: Bson): FindFlow<TDocument>

Finds all documents in the collection.

Return

the find iterable interface

Since

3.6

Parameters

clientSession

the client session with which to associate this operation

filter

the query filter


abstract fun <TResult : Any> find(    clientSession: ClientSession,     filter: Bson,     resultClass: KClass<out TResult>): FindFlow<TResult>

Finds all documents in the collection.

Return

the find iterable interface

Since

3.6

Parameters

clientSession

the client session with which to associate this operation

filter

the query filter

resultClass

the class to decode each document into

the target document type of the iterable.