apoc.schema.properties.distinct
Procedure
apoc.schema.properties.distinct(label String, key String)
- returns all distinct node property values for the given key.
Signature
apoc.schema.properties.distinct(label :: STRING?, key :: STRING?) :: (value :: LIST? OF ANY?)
Usage Examples
The examples in this section are based on the following sample graph:
CREATE (:Person {name: "Michael"});
CREATE (:Person {name: "Ryan"});
CALL apoc.schema.properties.distinct("Person", "name");
value |
---|
["Michael", "Ryan"] |
Was this page helpful?