Uses of Class
org.springframework.data.mongodb.core.aggregation.AggregationUpdate
Packages that use AggregationUpdate
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of AggregationUpdate in org.springframework.data.mongodb.core.aggregation
Methods in org.springframework.data.mongodb.core.aggregation that return AggregationUpdateModifier and TypeMethodDescriptionstatic AggregationUpdateAggregationUpdate.from(List<AggregationOperation> pipeline) Create a new AggregationUpdate from the givenAggregationOperations.AggregationUpdate.isolated()Prevents a write operation that affects multiple documents from yielding to other reads or writes once the first document is written.static AggregationUpdateAggregation.newUpdate(AggregationOperation... operations) Creates a newAggregationUpdatefrom the givenAggregationOperations.AggregationUpdate.replaceWith(Object value) $replaceWithreplaces the input document with the value.AggregationUpdate.replaceWith(ReplaceWithOperation replaceWithOperation) $replaceWithreplaces 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, anAggregationExpressionor aFieldreference.Short forunset(UnsetOperation).AggregationUpdate.unset(UnsetOperation unsetOperation) $unsetremoves/excludes fields from documents.static AggregationUpdateAggregationUpdate.update()Start defining the update pipeline to execute.