Everyman Neo4J resultset with path
<p>I am using Everyman classes to connect to neo4j database</p>

<p>I am trying to create a generic function parseResult  which operates on resultset object(of everyman neo4j)  and return an array of each row attributes. When a normal cypher is executed and its resultset is iterated  I find that 
Each row of result set is of type Node  and I can fetch all its properties by getProperties(). But when I run cypher which involve paths for example to fetch all connected nodes of a user
The cypher is somewhat like this:</p>

<pre><code>MATCH(n:User{Uid:$uid}) -[r *1..2]-(m) RETURN m,r
</code></pre>

<p>in this case some items are of type Row (typically those which contain information about relationship or path) thus I cannot  call  getProperties() on them thus giving me a fatal error .
I want to make a parseResult function as a generic function which can be used to construct an associative array from all the result types. </p>

<p>How can I do this.</p>