apoc.convert.toSet

Function APOC Core

apoc.convert.toSet(value) | tries it’s best to convert the value to a set

Signature

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

Input parameters

Name Type Default

list

ANY?

null

Usage Examples

Convert list to set
RETURN apoc.convert.toSet([1,2,3,2]) AS output;
Table 1. Results
Output

[1, 2, 3]