获取当前数据库中定义的所有关系类型

Get All Relationship Types Defined in Current Database

是否有任何有效的方法来获取当前定义的所有关系类型?

我知道这行得通:

match ()-[r]-() RETURN DISTINCT TYPE(r)

但我想如果关系的数量很大并且后台没有固有的索引,这将消耗大量时间。

CALL db.relationshipTypes()

要了解更多关于图表的奥秘,请参阅
How to get a high level inventory of objects in your graph


https://neo4j.com/download/ you can down load Neo4j desktop which will install a local copy of Neo4j server. Here is the online guide

其中有一个示例查询列表,可帮助您了解数据库。