top of page
Search

Neo4j: Get label count

  • Writer: Krishnaraj Rajagopal
    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;

Recent Posts

See All

Comments


©2017 by Krishna's Tech Notes. Proudly created with Wix.com

bottom of page