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 0000563 commit 9c17cf8Copy full SHA for 9c17cf8
source/reference/operator/aggregation/setWindowFields.txt
@@ -410,7 +410,7 @@ in :pipeline:`$setWindowFields` to output the cumulative cake sales
410
411
In the example:
412
413
-- ``partitionBy: "$state"`` :ref:`partitions
+- ``partitionBy: { $year: "$orderDate" }`` :ref:`partitions
414
<setWindowFields-partitionBy>` the documents in the collection by
415
:expression:`$year` in ``orderDate``. There are are partitions for
416
``2019``, ``2020``, and ``2021``.
0 commit comments