title: How to get degree of a node while filtering using MATCH in neo4j
body: <p>I have a graph with 4 levels. While filtering using <code>MATCH</code>, how can i get the "degree" of a node? I am always getting a "degree" of 1.</p>
  
  <p>Here is my query:</p>
  
  <pre><code>MATCH (k)-[r*]-&gt;(n:ABC)
  WITH k,r,n,count(k) as degree
  WHERE k.Value='30 ' AND degree &gt; 1
  RETURN n,r,k,degree;
  </code></pre>