Overview
The Distinct command provides functionality for:- Deduplicating arrays of objects by a specific field
- Retaining the first occurrence of each unique value
- Reducing collection size before downstream processing
Command Type
Command Type ID: 1010Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| key | string | The property name used to determine uniqueness. Objects with the same value for this key are considered duplicates | Yes |
Usage Examples
Deduplicate by ID
Deduplicate by Name
Deduplicate by Event Type
Common Use Cases
- Deduplication: Remove duplicate items from scraped data collections
- Data Normalization: Ensure unique records before processing or publishing
- Pre-filter Cleanup: Reduce redundant entries before downstream commands
Related Commands
- Filter - Filter items by value
- Array Join - Join deduplicated values
- Json Path - Extract fields from deduplicated output