Package-level declarations

Types

Link copied to clipboard
object KMongo

Kept for KMongo 4/5 source compatibility (KMongo.createClient().coroutine).

Functions

Link copied to clipboard
inline fun <T : Any> MongoDatabase.getCollection(): MongoCollection<T>

Gets a collection - the name of the collection is determined by org.litote.kmongo.util.KMongoUtil.defaultCollectionName.

inline fun <T : Any> MongoDatabase.getCollection(collectionName: String): MongoCollection<T>

Gets a collection.

Link copied to clipboard
inline fun <T : Any> MongoDatabase.getCollectionOfName(collectionName: String): MongoCollection<T>

Gets a collection.