KtMongo

object KtMongo(source)

Entry-point to convert objects from the official drivers to the KtMongo library.

To learn more about the syntax of the different operators, see the top-level functions in this package.

Functions

Link copied to clipboard
fun <T : Any> from(driver: MongoCollection<T>): JvmMongoCollection<T>

Converts a Java MongoDB collection into a KtMongo collection.

fun <T : Any> from(driver: MongoCollection<T>): JvmMongoCollection<T>

Converts a Kotlin MongoDB collection into a KtMongo collection.