Interface ReplaceRootOperation.Replacement
- Enclosing class:
- ReplaceRootOperation
public static interface ReplaceRootOperation.Replacement
Replacement object that results in a replacement document or an expression that results in a document.
- Author:
- Mark Paluch, Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionRenders the currentReplaceRootOperation.Replacement
into a its MongoDB representation based on the givenAggregationOperationContext
.
-
Method Details
-
toDocumentExpression
Renders the currentReplaceRootOperation.Replacement
into a its MongoDB representation based on the givenAggregationOperationContext
.- Parameters:
context
- will never be null.- Returns:
- a replacement document or an expression that results in a document.
-