Skip to content

Commit df382b6

Browse files
author
Dave
authored
DOCSP-22342 BACKPORT (#1034)
1 parent 4160f97 commit df382b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/operator/aggregation/setWindowFields.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ in :pipeline:`$setWindowFields` to output the cumulative cake sales
406406

407407
In the example:
408408

409-
- ``partitionBy: "$state"`` :ref:`partitions
409+
- ``partitionBy: { $year: "$orderDate" }`` :ref:`partitions
410410
<setWindowFields-partitionBy>` the documents in the collection by
411411
:expression:`$year` in ``orderDate``. There are are partitions for
412412
``2019``, ``2020``, and ``2021``.

0 commit comments

Comments
 (0)