Skip to content

opensavvy.ktmongo.dsl.query

Operators to query and update data.

All operators are declared as interface members. Each interface groups the operators of a given MongoDB command.

  • FilterQuery is used in find(), count(), delete() and as the filter in updateMany()

  • UpdateQuery is used as the update in updateMany()

  • UpsertQuery is used as the update in upsertOne()

  • UpdateWithPipelineQuery is used as the update in updateManyWithPipeline()

  • opensavvy.ktmongo.dsl.query.UpsertWithPipelineQuery is used as the update in upsertOneWithPipeline()

Types

FilterQuery

DSL for MongoDB operators that are used as predicates in conditions.

FilterQueryPredicate

DSL for MongoDB operators that are used as predicates in conditions in a context where the targeted field is already specified.

UpdateQuery

DSL for MongoDB operators that are used to update existing values (does not include aggregation operators).

UpdateWithPipelineQuery

Interface describing the DSL when declaring an update with a pipeline.

UpsertQuery

interface UpsertQuery<T> : UpdateQuery<T> 

DSL for MongoDB operators that are used to update existing values, creating new documents if none exist (does not include aggregation operators).

Functions