title: Neo4j: Query for a path between two nodes in a specific order of relationships and knowing only label of the last node
body: <p>For example if I have a complex graph having the following labels and relationships:</p>
  
  <p>N1-a->N2-b->N3-c->N4</p>
  
  <p>N2-d-N5-e->N3</p>
  
  <p>etc.</p>
  
  <p>Now, I want to find a path from (:N1{id:'xyz'}) to any node of type N4 using Cypher but I want the relationships to be in the same order i.e 
  a,b,c. </p>
  
  <p>Also, if there are no nodes of type N3 connecting to a node of type N4, I would like to return the path until N3</p>
  
  <p>I was wondering if there is a way to do this. Can someone please help? I am new to Neo4j</p>