apoc.convert.toStringList

Function APOC Core

apoc.convert.toStringList(value) | tries it’s best to convert the value to a list of strings

Signature

apoc.convert.toStringList(list :: ANY?) :: (LIST? OF ANY?)

Input parameters

Name Type Default

list

ANY?

null

Usage Examples

Convert list of values to list of strings
return apoc.convert.toStringList([1, "2", 3, "Four"]) AS output;
Table 1. Results
Output

["1", "2", "3", "Four"]