+3 votes
in Databases by (197k 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 (36.0k points)
selected by
Best answer

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;

Related questions