title: Cypher: find path using Scala AnormCypher?
body: <p>AnormCypher doc provides an example how to retriev data using the Stream API:
  <a href="http://anormcypher.org/" rel="nofollow">http://anormcypher.org/</a></p>
  
  <p>"The first way to access the results of a return query is to use the Stream API.</p>
  
  <p>When you call apply() on any Cypher statement, you will receive a lazy Stream of CypherRow instances, where each row can be seen as a dictionary:</p>
  
  <pre><code> // Create Cypher query
   val allCountries = Cypher("start n=node(*) where n.type = 'Country' return n.code as code, n.name as name")
  
   // Transform the resulting Stream[CypherRow] to a List[(String,String)]
   val countries = allCountries.apply().map(row =&gt; 
     row[String]("code") -&gt; row[String]("name")
   ).toList
  </code></pre>
  
  <p>I am trying to use the same aproach to get path with the following Cypher query:</p>
  
  <p><code>MATCH p = (n {id: 'n5'})-[*]-(m) RETURN p;</code></p>
  
  <p>Yet, when running this code:</p>
  
  <pre><code>Cypher("MATCH p = (n {id: 'n5'})-[*]-(m) RETURN p;")().map {row  =&gt;
    println(row[Option[org.anormcypher.NeoRelationship]]("p"))
  }
  </code></pre>
  
  <p>I get exception (see below). How to get path info from <code>CypherRow</code> in this case?</p>
  
  <pre><code> Exception in thread "main" java.lang.RuntimeException: TypeDoesNotMatch(Unexpected type while building a relationship)
      at org.anormcypher.MayErr$$anonfun$get$1.apply(Utils.scala:21)
      at org.anormcypher.MayErr$$anonfun$get$1.apply(Utils.scala:21)
      at scala.util.Either.fold(Either.scala:97)
      at org.anormcypher.MayErr.get(Utils.scala:21)
      at org.anormcypher.CypherRow$class.apply(AnormCypher.scala:303)
      at org.anormcypher.CypherResultRow.apply(AnormCypher.scala:309)
      at bigdata.test.n4j.Simple$$anonfun$main$1.apply(Simple.scala:31)
      at bigdata.test.n4j.Simple$$anonfun$main$1.apply(Simple.scala:29)
      at scala.collection.immutable.Stream.map(Stream.scala:376)
      at bigdata.test.n4j.Simple$.main(Simple.scala:29)
  </code></pre>