FlowDSL Node Catalog

Array Op

Map/filter/sort/unique/slice/length/reverse/flatten an array field.

Overview

PropertyValue
Node IDcore/array-ops
Kindtransform
Modulecore-flowdsl
Repogo-flowdsl
Handlergithub.com/redelay/go-flowdsl/nodes/core.ArrayOps
Iconlucide:list
Color#8b5cf6
Tagsarray, transform

Outputs

  • out — (no description)

Settings

PropertyTypeRequiredDefaultUI GroupDescription
byFieldstring———For sort/unique on objects: the key to compare by.
descboolean—false—
endinteger———
needlestring———
opstring (length|unique|reverse|flatten|…)yes——
outputKeystringyesresult—
sourcePathstringyes——
startinteger———

Example

yaml
# Use this node in a flow:
nodes:
  - id: my_step
    name: My Step
    kind: transform
    action_ref: core/array-ops
    config:
      byField: "value"
      desc: false
      end: 10
      needle: "value"
      op: "value"
      outputKey: result
      sourcePath: some.packet.path
      start: 10