Package dev.morphia.aggregation.stages
Class Redact
java.lang.Object
dev.morphia.aggregation.stages.Stage
dev.morphia.aggregation.stages.Redact
Restricts the contents of the documents based on information stored in the documents themselves.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Redact
redact
(Expression expression) Creates a redaction stage with the given expression
-
Method Details
-
redact
Creates a redaction stage with the given expression- Parameters:
expression
- the expression- Returns:
- the new field
- Since:
- 2.2
- MongoDB documentation
- Aggregration Pipeline Stage: $redact
-