Neo4j: Get label count
- Krishnaraj Rajagopal
- Jun 18, 2018
- 1 min read
Run the following cypher query to get the label counts
call db.labels() yield label
call apoc.cypher.run("match (:`"+label+"`) return count(*) as count", null) yield value
return label, value.count as count;
Comments