Count By

data · C178 · starter-package 7.0.1

Build a record containing the number of items for each selected category key.

When to use

Build a record containing the number of items for each selected category key.

Inputs

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

Outputs

  • Counts (record): deterministic result output.

Behavior and boundaries

Every item must expose a safe text key in Field. The output is a record from each key to a finite count, not one ambiguous scalar count.

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

Example

Counting [{"type":"x"},{"type":"y"},{"type":"x"}] by "type" produces {"x":2,"y":1}.

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.