Skip to content

Commit 52d86ee

Browse files
vkarpov15kay-kim
authored andcommitted
Improve description of aggregation $count
Re: Automattic/mongoose#7114, the current description is misleading because it implies that if `$count` is the last aggregation stage, you should get a single document as output rather than a cursor or array.
1 parent 6b1896e commit 52d86ee

File tree

1 file changed

+2
-2
lines changed
  • source/reference/operator/aggregation

1 file changed

+2
-2
lines changed

source/reference/operator/aggregation/count.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Definition
1717

1818
.. versionadded:: 3.4
1919

20-
Returns a document that contains a count of the number of documents
21-
input to the stage.
20+
Passes a document to the next stage that contains a count of the
21+
number of documents input to the stage.
2222

2323
:pipeline:`$count` has the following prototype form:
2424

0 commit comments

Comments
 (0)