Package-level declarations

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
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

Link copied to clipboard

Creates an empty FilterQuery.

Link copied to clipboard

Creates an empty UpdateQuery.

Link copied to clipboard

Creates an empty UpsertQuery.