RETURN THE UNIQUE KEY VALUES FROM THE GIVEN RESPONSE¶
Extracts unique key values from a key-value response and returns them in a specified sort order. Use this worker to deduplicate and rank key-value entries when a sorted, optionally truncated list of unique keys is needed downstream.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Response | response | keyvalue | — | Key-value response object to process; supply any key-value input whose unique keys are to be extracted and sorted. | |
| Sort Type | sort_type | scalar | asc | Sort direction for the returned unique keys — ‘asc’ (ascending, default) or ‘desc’ (descending). | |
| Limit | limit | scalar | -1 | Maximum number of unique key values to return; defaults to -1, which returns all unique keys without restriction. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| keyvalue_sort_output_1 | keyvalue_sort_output_1 | keyvalue | Key-value object containing the deduplicated, sorted (and optionally truncated) unique keys from the input response. |
Disciplines¶
- data.dataset.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=keyvalue_sort
Auto-generated from transformation schema. Worker id: keyvalue_sort. Schema hash: 60b5de33bb4e. Hand-curated docs in workerexamples/ override this page when present.