fun <T> MongoCollection<T>.find(filter: String = KMongoUtil.EMPTY_JSON): FindIterable<T>
(source)
Finds all documents in the collection.
Return
the find iterable interface
fun <T> MongoCollection<T>.find(vararg filters: Bson?): FindIterable<T>
(source)
Finds all documents in the collection.
Return
the find iterable interface
fun <T> MongoCollection<T>.find(clientSession: ClientSession, filter: String = KMongoUtil.EMPTY_JSON): FindIterable<T>
(source)
Finds all documents in the collection.
clientSession
- the client session with which to associate this operation
Return
the find iterable interface
fun <T> MongoCollection<T>.find(clientSession: ClientSession, vararg filters: Bson?): FindIterable<T>
(source)
Finds all documents in the collection.
clientSession
- the client session with which to associate this operation
Return
the find iterable interface