kmongo / org.litote.kmongo / com.mongodb.client.MongoDatabase / getCollection

getCollection

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

Gets a collection.

Parameters

collectionName - the name of the collection to return

Parameters

Return
the collection

fun <reified T : Any> MongoDatabase.getCollection(): MongoCollection<T> (source)

Gets a collection.

Parameters

Return
the collection

See Also

defaultCollectionName