We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4160f97 commit df382b6Copy full SHA for df382b6
source/reference/operator/aggregation/setWindowFields.txt
@@ -406,7 +406,7 @@ in :pipeline:`$setWindowFields` to output the cumulative cake sales
406
407
In the example:
408
409
-- ``partitionBy: "$state"`` :ref:`partitions
+- ``partitionBy: { $year: "$orderDate" }`` :ref:`partitions
410
<setWindowFields-partitionBy>` the documents in the collection by
411
:expression:`$year` in ``orderDate``. There are are partitions for
412
``2019``, ``2020``, and ``2021``.
0 commit comments