问题
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?
回答1:
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`
回答2:
In Browser you can use CALL db.constraints to get all constraints on graph.
For more Info: https://neo4j.com/docs/developer-manual/current/cypher/schema/constraints/
来源:https://stackoverflow.com/questions/21658285/how-do-i-get-the-already-existing-constraints-in-neo4j