Warm tip: This article is reproduced from serverfault.com, please click

How do I get the already existing constraints in Neo4j?

发布于 2014-02-09 11:07:40

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?

Questioner
LowFieldTheory
Viewed
0
Michael Hunger 2014-02-09 19:28:55

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`