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.
-
FilterQueryis used infind(),count(),delete()and as the filter inupdateMany() -
UpdateQueryis used as the update inupdateMany() -
UpsertQueryis used as the update inupsertOne() -
UpdateWithPipelineQueryis used as the update inupdateManyWithPipeline() -
opensavvy.ktmongo.dsl.query.UpsertWithPipelineQuery is used as the update in
upsertOneWithPipeline()
Types¶
FilterQuery¶
interface FilterQuery<T> : CompoundBsonNode, FieldDsl
DSL for MongoDB operators that are used as predicates in conditions.
FilterQueryPredicate¶
interface FilterQueryPredicate<T> : CompoundBsonNode, FieldDsl
DSL for MongoDB operators that are used as predicates in conditions in a context where the targeted field is already specified.
UpdateQuery¶
interface UpdateQuery<T> : CompoundBsonNode, FieldDsl
DSL for MongoDB operators that are used to update existing values (does not include aggregation operators).
UpdateWithPipelineQuery¶
interface UpdateWithPipelineQuery<Document : Any> : CompoundBsonNode
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).