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

graph databases-如何获得 Neo4j 中已经存在的约束?

(graph databases - How do I get the already existing constraints in Neo4j?)

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

当我在图表上创建了一些约束时,如何才能看到它们并消除它们?将它们视为图形元素的语法是什么?

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

在 Neo4j 浏览器中,你可以使用:schema命令列出它们。在外壳中它是schema

然后你可以删除它们

`DROP INDEX ON :Label(prop)` 

或者

`DROP CONSTRAINT ON (n:Label) ASSERT n.props IS UNIQUE`