Overview
The Filter command provides functionality for:- Including only objects whose field value matches the filter list
- Excluding objects whose field value matches the filter list
- Filtering by string, number, or boolean values
Command Type
Command Type ID: 1004Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| filter | Array of string / number / boolean | Defines the set of values to be matched against the key | Yes |
| include | boolean | If true, returns only items matching the filter. If false, excludes matching items | Yes |
| key | string | Specifies the field in each object used for filtering | Yes |
Usage Examples
Include Only Specific Statuses
Exclude Specific IDs
Filter by Boolean Flag
Common Use Cases
- Status Filtering: Keep only records in specific states (e.g.
active,live) - ID Exclusion: Remove known irrelevant or blacklisted IDs
- Feature Flagging: Filter based on boolean feature flags in the data
Related Commands
- Distinct - Remove duplicates after filtering
- Json Path - Extract specific fields from filtered results
- Key Mapping - Remap fields after filtering