title: Cypher-Spring Neo4j - Returning 2 nodes on the same time
body: <p>Hi I have this situation below:</p>
  
  <blockquote>
    <p><br/><strong>MOVE 1</strong> : <strong>FROM</strong> pointA <strong>TO</strong> pointD <br/><strong>MOVE 2</strong> :
    <strong>FROM</strong> pointA <strong>TO</strong> pointB <br/><strong>MOVE 3</strong> : <strong>FROM</strong> pointA <strong>TO</strong> pointC <br/><strong>MOVE 4</strong> : <strong>FROM</strong> pointC <strong>TO</strong> pointD <br/><strong>MOVE 5</strong>
    : <strong>FROM</strong> pointB <strong>TO</strong> pointD</p>
  </blockquote>
  
  <p>I want to go from pointA to pointD and I need to return the path(MOVE) that I need to follow:</p>
  
  <p>I just did this query:</p>
  
  <blockquote>
    <p><br/><strong>START</strong>  f=node(1),t=node(2) <br/><strong>MATCH</strong> 
    f&lt;-[r1:FROM]-move1-[r2:TO]->point&lt;-[r3:FROM]-move2-[r4:TO]->t
    <br/><strong>RETURN</strong> move1,move2</p>
  </blockquote>
  
  <p>and it returned:</p>
  
  <pre><code> _________________
  | NODE   |  NODE  |
  |--------|--------| 
  | Move 2 | Move 5 |
  | Move 3 | Move 4 |
  |_________________|
  </code></pre>
  
  <p>I like the return, but has some points that It fails</p>
  
  <p>1st) It missed the <strong>MOVE 1</strong>
  <em>*</em> I can build another query if doesn't have another way</p>
  
  <p>2nd) I don't know how to work with it returning 2 nodes, if it return a list of nodes, i can the code below, but if it return the Node(move 2) and the Node(move 5) on the same time how can I work with this situation?</p>
  
  <pre><code>@Query("f=node({id}) MATCH f&lt;-[r1:FROM]-move1")
  Iterable&lt;Move&gt; moves (@Param("id")Long id);
  </code></pre>
  
  <p><br/>
  here my console with my issue:
  <br/><a href="http://console.neo4j.org/?id=ln3w9c" rel="nofollow">http://console.neo4j.org/?id=ln3w9c</a></p>
  
  <p><br/>
  Can someone advise?</p>
  
  <p>Thanks</p>