I have a graph with 4 levels. While filtering using MATCH
, how can i get the "degree" of a node? I am always getting a "degree" of 1.
Here is my query:
MATCH (k)-[r*]->(n:ABC)
WITH k,r,n,count(k) as degree
WHERE k.Value='30 ' AND degree > 1
RETURN n,r,k,degree;