Documentation Index

Fetch the complete documentation index at: https://docs.lobster-world.com/llms.txt

Use this file to discover all available pages before exploring further.

collect (collect object field values from input list)

Prev Next

Collects the values of object fields from entries of a list. A list and the field path are passed as arguments.

Tooltip

Syntax: $collect(source,propertyPath)

Parameter

Description

source

The source list, which contains the source entries.

propertyPath

The path to a field/property relative to a list entry.

Returns a new list containing the values of the individual input fields.

Example: $collect($input,username) → If $input is a list of users, this expression returns a list of usernames.

Syntax

$collect(source,propertyPath)

Parameter

Name

Description

source

The source list, which contains the source entries.

propertyPath

The path to a field/property relative to a list entry.

Return value

Returns a new list containing the values of the individual input fields.

Example

Syntax

Result

$collect($input,username)

If $input is a list of users, this expression returns a list of user names.

$collect($input,address.name1)

If $input is a list of users, this expression returns all 'Name 1' of all these users.