简体   繁体   English

如何获取 neo4j 数据库中的属性总数(节点、关系)和所有属性(节点、关系)的列表

[英]how to get a total number of properties(nodes,relationships) and list of all properties(nodes,relationships) in neo4j database

How to get a total number of properties (nodes,relationships) and list of all properties(nodes,relationships) in neo4j database.如何获取 neo4j 数据库中的属性总数(nodes,relationships)和所有属性(节点、关系)的列表。

When we create nodes and relationships in neo4j database, we get message like this below " Added 24 labels, created 24 nodes, set 70 properties, created 45 relationships, completed after 31 ms. "当我们在 neo4j 数据库中创建节点和关系时,我们会收到如下消息“ Added 24 labels, created 24 nodes, set 70 properties, created 45 relationships, completed after 31 ms.

I like to validate the properties created.我喜欢验证创建的属性。 Hence I want to know how to query for list of the properties created in database.因此我想知道如何查询在数据库中创建的属性列表。

For a broad summary of labels, relationships and properties in use, along with a global total of nodes and relationships, click on the database icon in the top left corner of Neo4j Browser.有关使用中的标签、关系和属性的广泛摘要,以及节点和关系的全局总数,请单击 Neo4j 浏览器左上角的数据库图标。

For more in-depth statistics you may find有关更深入的统计数据,您可能会发现

CALL apoc.meta.data()

useful.有用。 You will need to install APOC first您需要先安装APOC

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM