apoc.convert.toIntList

Function APOC Core

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

Signature

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

Input parameters

Name Type Default

list

ANY?

null

Usage Examples

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

[1, 2, 3]