The FilterStage methods enable you to configure the aggregation pipeline to filter and control which items it processes. You can chain FilterStage methods to define the filter.
Learn more about aggregation pipeline stages.
Notes:
- 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.
- The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format:
"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}. Learn more about data types in Wix Data.