Key By

data · C179 · starter-package 7.0.1

Turn a list of records into a record indexed by one unique text field.

When to use

Turn a list of records into a record indexed by one unique text field.

Inputs

  • list — List: list; required; supported workflow value for list.
  • field — Field: text; required; supported workflow value for field.

Outputs

  • Indexed Record (record): deterministic result output.

Behavior and boundaries

Every selected key must be safe text and unique. Duplicate keys fail explicitly instead of silently overwriting an earlier item.

These operations do not change the original input. Unsupported, circular, invalid, or excessively large values stop the workflow with a clear message.

Example

Keying [{"id":"a","n":1},{"id":"b","n":2}] by "id" produces fields a and b.

Failure cases

Execution stops with an actionable Nodestly error when a required connector is missing, a value has the wrong type or shape, a configured index/mode is unsupported, or the result would exceed collection limits.

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.