← Back to all posts

Data Operations

On this page

Purpose

Data Operations changes one Data value without writing code. Each node runs one selected operation.

Data Operations Filter Values controls

When to use it

  • Keep, remove, rename, or add JSON keys.
  • Filter values inside a Data object.
  • Combine Data inputs.
  • Select a nested value or run a jq expression.

How to use it

  1. Connect a Data-producing component to Data.
  2. Select one Operation.
  3. Fill in the fields that appear for that operation.
  4. Connect the Data output to the next component.

Configuration

OperationVisible fieldsWhat it does
Select KeysSelect KeysKeeps selected top-level keys. Every requested key must exist.
Literal EvalNo extra fieldsConverts strings that look like Python literals. Unparseable strings stay unchanged.
CombineData accepts multiple inputsMerges Data values. Duplicate-key values become lists in input order.
Filter ValuesFilter Key, Comparison Operator, Filter ValuesFilters records in a top-level list. Comparisons are string-based and equals is the default.
Append or UpdateAppend or UpdateAdds or replaces top-level keys from a key-value mapping.
Remove KeysRemove KeysRemoves matching keys recursively.
Rename KeysRename KeysRenames matching keys recursively.
Path SelectionJSON to Map, Select PathGenerates paths from sample JSON, then evaluates the selected path against connected Data.
JQ ExpressionJQ ExpressionRuns a jq expression against connected Data.

Each node runs one operation. Use another Data Operations node for the next transformation.

Expected result

The component returns Data. With no selected operation, it returns empty Data. Append or Update changes top-level keys. Combine turns duplicate-key values into lists in input order. JQ Expression returns a single dictionary match directly. A single non-dictionary match or multiple matches are wrapped under result.

Reference details

Path Selection uses sample JSON to build the editor choices, but execution always uses the connected Data. Filter Values does not coerce numeric or boolean types before comparing them. A missing Filter Key raises an error, a non-list Filter Key raises a type error, and an empty Filter Values entry leaves that pass unchanged. Blank, null, or no-match JQ expressions fail instead of returning empty Data.

← Back to all posts