Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the already existing constraints in Neo4j?

When I've created some constraints on the graph, how is possible to see them and in case eliminate them? What is the syntax to treat them as elements of the graph?

like image 598
LowFieldTheory Avatar asked Dec 15 '22 01:12

LowFieldTheory


1 Answers

In the neo4j browser you can use the :schema command to list them. In shell it is schema

Then you can remove them with

`DROP INDEX ON :Label(prop)` 

or

`DROP CONSTRAINT ON (n:Label) ASSERT n.props IS UNIQUE`
like image 75
Michael Hunger Avatar answered Dec 31 '22 02:12

Michael Hunger