Schema

WorldCypher supports explicit schema management for indexes and constraints.

Indexes#

Speed up property lookups:

CREATE INDEX ON :Person(name)
CREATE INDEX ON :Person(age)
DROP INDEX ON :Person(name)

List all indexes:

CALL db.indexes()

Constraints#

Enforce data integrity:

CREATE CONSTRAINT ON (n:Person) ASSERT n.email IS UNIQUE
DROP CONSTRAINT ON (n:Person) ASSERT n.email IS UNIQUE

List all constraints:

CALL db.constraints()

See Also#

Try it
Open ↗
Loading engine…