Package dev.morphia.aggregation.stages
Class Count
java.lang.Object
dev.morphia.aggregation.stages.Stage
dev.morphia.aggregation.stages.Count
Passes a document to the next stage that contains a count of the number of documents input to the stage.
- Since server release
- 3.4
-
Method Summary
-
Method Details
-
count
Creates a new Count stage- Parameters:
name
- the field name- Returns:
- the new stage
- Since:
- 3.0
- MongoDB documentation
- Aggregration Pipeline Stage: $count
-