java.lang.Object
org.springframework.data.mongodb.core.aggregation.SetOperation
All Implemented Interfaces:
AggregationOperation, FieldsExposingAggregationOperation, FieldsExposingAggregationOperation.InheritsFieldsAggregationOperation

public class SetOperation extends Object
Adds new fields to documents. $set outputs documents that contain all existing fields from the input documents and newly added fields.
 SetOperation.set("totalHomework").toValue("A+").and().set("totalQuiz").toValue("B-")
 
Since:
3.0
Author:
Christoph Strobl
See Also: