[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

apoc.schema

Qualified Name Type Release

apoc.schema.assert({indexLabel:, …​}, {constraintLabel:[constraintKeys], …​}, dropExisting : true) yield label, key, keys, unique, action - drops all other existing indexes and constraints when dropExisting is true (default is true), and asserts that at the end of the operation the given indexes and unique constraints are there, each label:key pair is considered one constraint/label. Non-constraint indexes can define compound indexes with label:[key1,key2…​] pairings.

Procedure

APOC Core

CALL apoc.schema.nodes([config]) yield name, label, properties, status, type

Procedure

APOC Core

apoc.schema.properties.distinct(label, key) - quickly returns all distinct values for a given key

Procedure

APOC Core

apoc.schema.properties.distinctCount([label], [key]) YIELD label, key, value, count - quickly returns all distinct values and counts for a given key

Procedure

APOC Core

CALL apoc.schema.relationships([config]) yield name, startLabel, type, endLabel, properties, status

Procedure

APOC Core

RETURN apoc.schema.node.constraintExists(labelName, propertyNames)

Function

APOC Core

RETURN apoc.schema.node.indexExists(labelName, propertyNames)

Function

APOC Core

RETURN apoc.schema.relationship.constraintExists(type, propertyNames)

Function

APOC Core

RETURN apoc.schema.relationship.indexExists(relName, propertyNames)

Function

APOC Core