The GroupStage
methods enable you to configure the aggregation pipeline to group items and calculate aggregate values. You can chain GroupStage
methods to define how to group items and what calculations to perform on each group.
Learn more about aggregation pipeline stages.
Note: You can only run the aggregation pipeline on collections created in the CMS or with the Data Collections API. They cannot be used on Wix app collections or external collections.