title: How to get nodes from relationships with any depth including relation filter
body: <p>I'm using a query similar to this one:</p>
  
  <pre><code>(n)-[*]-&gt;(m)
  Any depth.
  </code></pre>
  
  <p>But I cannot filter the relation name in such a query like this:</p>
  
  <pre><code>(n)-[*:DOES]-&gt;(m)
  Any depth.
  </code></pre>
  
  <p>I need to filter the relation name since there are different relations on the related path. If it helps, here is my graph:</p>
  
  <pre><code>CREATE (Computer { name:'Computer' }),(Programming { name:'Programming' }),(Java { name:'Java' }),(GUI { name:'GUI' }),(Button { name:'Button' }), Computer&lt;-[:IS]-Programming, Programming&lt;-[:IS]-Java, Java&lt;-[:IS]-GUI, GUI&lt;-[:IS]-Button, (Ekin { name:'Ekin' }), (Gunes { name:'Gunes' }), (Ilker {name:'Ilker'}), Ekin-[:DOES]-&gt;Programming, Ilker-[:DOES]-&gt;Java, Ilker-[:DOES]-&gt;Button, Gunes-[:DOES]-&gt;Java
  </code></pre>
  
  <p>I'd like to get the names (Ekin, Ilker and Gunes) which have "DOES" relationship connected to "Programming" with any depth.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I'm able to get the values I want by merging two different queries' results (think 13 is the top node that I want to reach):</p>
  
  <pre><code>START n=node(13) 
  MATCH p-[:DOES]-&gt;()-[*]-&gt;(n) 
  RETURN DISTINCT p
  
  START n=node(13) 
  MATCH p-[:DOES]-&gt;(n) 
  RETURN DISTINCT p
  </code></pre>
  
  <p>I want to do it in a single query.</p>