top of page
Search

Neo4j: Get label-relationship count

  • Writer: Krishnaraj Rajagopal
    Krishnaraj Rajagopal
  • Jun 18, 2018
  • 1 min read

Run the following cypher query to get the label to relationship count

match (n)-[r]-(m) return labels(n),count(r) as rel_count, labels(m) order by rel_count desc

Recent Posts

See All
Neo4j: Get label count

Run the following cypher query to get the label counts call db.labels() yield label call apoc.cypher.run("match (:`"+label+"`) return...

 
 
 

Comments


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

bottom of page