Class ReplaceWithOperation

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

public class ReplaceWithOperation extends ReplaceRootOperation
Encapsulates the aggregation framework $replaceRoot-operation.
The operation replaces all existing fields including the id field with @{code $replaceWith}. This way it is possible to promote an embedded document to the top-level or specify a new document.
Since:
3.0
Author:
Christoph Strobl
See Also: