+3 votes
in Databases by (51.1k points)
I want to check how many relationship types are in the database. Also, how many relationships by each type are there in the database?

1 Answer

+1 vote
by (16.2k points)

You can try the following Cypher query to get the number of relationships by relationship type.

MATCH ()-[r]-() 

RETURN TYPE(r) AS relationshipType, COUNT(r) AS relationshipCount;