0

I know that I can get total number of relationships using MATCH () -[r]-> () RETURN count(r) AS quantity. How I can get count per relationship type?

ShymPi1999
  • 51
  • 3

1 Answers1

1

Use the following query to get count per relationship type:

MATCH ()-[e]->() RETURN type(e), count(e) as quantity
Adrian Mole
  • 49,934
  • 160
  • 51
  • 83
Moraltox
  • 537
  • 1
  • 7