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>, documentType: KType, nameStrategy: PropertyNameStrategy = PropertyNameStrategy.Default): JvmMongoCollection<T>

Converts a Java MongoDB collection into a KtMongo collection.

fun <T : Any> from(driver: MongoCollection<T>, documentType: KType, nameStrategy: PropertyNameStrategy = PropertyNameStrategy.Default): JvmMongoCollection<T>

Converts a Kotlin MongoDB collection into a KtMongo collection.

Link copied to clipboard
fun <T> typeOf(value: T): KType

Obtains a Kotlin KType instance for a Java value.