0

I have this query: match path = (test:Test {t_name:"Test-1"})-[r*]->(child) return path

Json response: results [1] - columns[1] - 0: path - data[6] - row[1] - meta[1] - graph - nodes[2] - relationships[1]

How to parse this query result in Neoism? I want to get the nodes and relationships in the response result.

amerikiwi
  • 11
  • 1

1 Answers1

0

You can always return these from the query itself, instead of the path:

...
return nodes(path) as nodes, relationships(path) as relationships
InverseFalcon
  • 29,576
  • 4
  • 38
  • 51
  • My question is how to parse the results of the query. Your suggestion is just another way to get the same response. The path query I am using returns both the nodes as relationships already. How to parse the query response for the nodes and relationships? – amerikiwi Apr 29 '17 at 17:37