Skip to main content

group by

Group items in a list by a key

Written by Holly Conrad Smith

Use this when you want to organise object values into groups by a shared key within a flow, for example grouping features by usage type or zone.

Inputs

Name

Abbreviation

Type

Access

Description

List

L

Any

Item

The list to group

Key

K

String

Item

The key to group by

Outputs

Name

Abbreviation

Type

Access

Description

Groups

G

Object

Item

The groups

How-to

  1. Feed in a list

  2. Feed in a string to define the group

    You can use a string node or the result of any node that generates a string

  3. The result is the list, grouped by the key provided

Did this answer your question?