getCollectionOf

inline fun <TDocument : Any> MongoDatabase.getCollectionOf(name: String): MongoCollection<TDocument>

Gets a collection, with a specific default document class.

Return

the collection

Parameters

name

the name of the collection to return

the type of the class to use instead of `Document`.