IronFlowDocs

select_fields

Select specific fields from a context object.

Parameters

source_keystringrequired
Context key holding the source object
output_keystringrequired
Context key where the resulting object will be stored
fieldsarrayrequired
List of field names (strings) to include in the output

Context Output

  • {output_key} — a new object containing only the selected fields. Fields that do not exist on the source object are silently skipped.

Example

flow:step("pick_fields", nodes.select_fields({
    source_key = "user",
    fields = { "name", "email", "id" },
    output_key = "user_summary"
}))

IronFlow documentation

Find the next step

Type a keyword to search the documentation.

to move · Enter to open · Esc to close