Aggregation
$count
The $count aggregation stage processes documents in a pipeline.
$count
The $count aggregation stage processes documents in a pipeline.
Syntax
{ $count: { ... } }
Example
{ $count: { field: 1 } }The $count aggregation stage processes documents in a pipeline.
The $count aggregation stage processes documents in a pipeline.
{ $count: { ... } }
{ $count: { field: 1 } }