Uses of Class
org.springframework.data.mongodb.core.aggregation.AggregationUpdate
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of AggregationUpdate in org.springframework.data.mongodb.core.aggregation
Modifier and TypeMethodDescriptionstatic AggregationUpdate
AggregationUpdate.from
(List<AggregationOperation> pipeline) Create a new AggregationUpdate from the givenAggregationOperation
s.AggregationUpdate.isolated()
Prevents a write operation that affects multiple documents from yielding to other reads or writes once the first document is written.static AggregationUpdate
Aggregation.newUpdate
(AggregationOperation... operations) Creates a newAggregationUpdate
from the givenAggregationOperation
s.AggregationUpdate.replaceWith
(Object value) $replaceWith
replaces the input document with the value.AggregationUpdate.replaceWith
(ReplaceWithOperation replaceWithOperation) $replaceWith
replaces the input document with the specified document.AggregationUpdate.set
(SetOperation setOperation) Adds new fields to documents.Define the target value as is.Define the target value as value, anAggregationExpression
or aField
reference.Short forunset(UnsetOperation)
.AggregationUpdate.unset
(UnsetOperation unsetOperation) $unset
removes/excludes fields from documents.static AggregationUpdate
AggregationUpdate.update()
Start defining the update pipeline to execute.