apoc.text.join

This function is deprecated. Use Cypher’s string.join() function instead.

Details

Syntax

apoc.text.join(texts, delimiter)

Description

Joins the given STRING values using the given delimiter.

Arguments

Name

Type

Description

texts

LIST<STRING>

The list of strings to be concatenated using the given delimiter.

delimiter

STRING

The given delimiter to join the given strings with.

Returns

STRING

Usage Examples

The following returns the joined strings using the given delimiter using both APOC and Cypher:

apoc.text.join
RETURN apoc.text.join(['Hello', 'World'], ' ') AS output;
Using Cypher’s string.join
RETURN string.join(['Hello', 'World'], ' ') AS output;
Results
output

"Hello World"