Skip to content

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

Package-level declarations

Types

JavaField

class JavaField<Root, Type> : Field<Root, Type> 

Type-safe representation of a dotted MongoDB field path from Java method references.

KtMongo

object KtMongo

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

Functions

filter

fun <T> filter(block: Consumer<FilterQuery<T>>): (FilterQuery<T>) -> Unit

Helper for Java users of the find/filter methods.

options

fun <O : Options> options(): (O) -> Unit

Helper for Java users to specify the default options for a request.

fun <O : Options> options(block: Consumer<O>): (O) -> Unit

Helper for Java users to specify options for a given request.

sort

fun <T : Any> sort(block: Consumer<SortOptionDsl<T>>): (SortOptionDsl<T>) -> Unit

Helper for Java users to specify the sort order within the WithSort.sort option.