apoc.convert.toBooleanList

Function APOC Core

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

Signature

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

Input parameters

Name Type Default

list

ANY?

null

Usage Examples

Convert list of values to list of booleans
return apoc.convert.toBooleanList(["true", 0, 1.1]) AS output;
Table 1. Results
Output

[TRUE, FALSE, TRUE]