Article DetailsDetailsHelp DetailsThere are times when you will want to get a summary of your graph to, for instance, see all the labels or get a count of nodes and relationships. The Cypher below will return that information. As you'll see below, it returns the labels, relationship types and property keys. It also gives you a count of the nodes and relationships. CALL db.labels() YIELD label RETURN {name:'labels', data:COLLECT(label)[..1000]} AS result UNION ALL CALL db.relationshipTypes() YIELD relationshipType RETURN {name:'relationshipTypes', data:COLLECT(relationshipType)[..1000]} AS result UNION ALL CALL db.propertyKeys() YIELD propertyKey RETURN {name:'propertyKeys', data:COLLECT(propertyKey)[..1000]} AS result UNION ALL CALL { MATCH () RETURN count(*) AS nodeCount } RETURN { name:'nodes', data: nodeCount } AS result UNION ALL CALL { MATCH ()-[]->() RETURN count(*) AS relCount } RETURN { name:'relationships', data: relCount } AS result This will yield results like the following: Use the following procedure to see your schema: CALL db.schema.visualization() You can view the property types for nodes in your graph by executing this query: CALL db.schema.nodeTypeProperties() You can view the property types for relationships in your graph by executing this query: CALL db.schema.relTypeProperties() To see all your indexes: SHOW INDEXESTo get the 'Store Size', Node and Relationship 'Id Allocation' (allocated vs in use), and Transaction Metrics: :SYSINFO Also see: How do I compare two graphs for equalityInformationTitleHow can I get a summary/overview of my graph?Article Created Date3/15/2024, 10:57 PMURL Name13526668685587-How-can-I-get-a-summary-overview-of-my-graphLast Modified Date5/22/2025, 12:06 PM