Details
-
Bug
-
Resolution: Unresolved
-
Minor - P4
-
None
-
6.0.9
-
None
-
Query Optimization
-
ALL
-
Description
I was using the aggregation stage $count and noticed that if the input dataset was empty that $count does not return anything.
I was expecting it to return 0.
There is nothing specified in the docs to expect this behaviour.
https://www.mongodb.com/docs/manual/reference/operator/aggregation/count/
Attachments
Issue Links
- related to
-
SERVER-54958 Empty result when counting from empty collection in aggregation
-
- Backlog
-