(child) return path Json response: results [1] - columns[1] - 0: path - da..." /> (child) return path Json response: results [1] - columns[1] - 0: path - da..." /> (child) return path Json response: results [1] - columns[1] - 0: path - da..."/>

neoism how to parse query with "path" result

112 Views Asked by At

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.

1

There are 1 best solutions below

1
On

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

...
return nodes(path) as nodes, relationships(path) as relationships