CONCAT

CONCAT concatenates one or more arrays and returns the result an array. It can take an arbitrary number of arguments.

Function category: Collection

Syntax

CONCAT([args...])

Arguments

Description

arg2

One or more arrays.

Example

Example 1: Combining arrays

Let's say we're given a response with the following vehicle information:

{
"data":{
"japanese_brands":[ "Toyota", "Honda", "Nissan" ],
"german_brands":[ "BMW", "Mercedes Benz" ]
"swedish_brands":[ "Volvo" ]
}
}

To combine the two brand arrays into one array containing all brand names. use CONCAT.

CONCAT(data.japanese_brands, data.german_brands, data.swedish_brands)

This resolves to the following:

[ "Toyota", "Honda", "Nissan", "BMW", "Mercedes Benz", "Volvo" ]