如何获得Neo4j中已经存在的约束? [英] How do I get the already existing constraints in Neo4j?

查看:322
本文介绍了如何获得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?

推荐答案

在neo4j浏览器中,您可以使用:schema命令列出它们. 在外壳中是schema

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

然后您可以使用

`DROP INDEX ON :Label(prop)` 

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

这篇关于如何获得Neo4j中已经存在的约束?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆