Skip to content

MongoDB driver for Kotlin (synchronous, with Java helpers)opensavvy.ktmongo.syncKtMongo

KtMongo

object KtMongo

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

from

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

Converts a Java MongoDB collection into a KtMongo collection.

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

Converts a Kotlin MongoDB collection into a KtMongo collection.