I want to extract subgraph into json format..
I tried using following query:
match path = (n)-[r]-(b) WHERE (n.user_id='0000001') with collect(path) as paths
call apoc.convert.toTree(paths) yield value
return value
But it doesn't give me correct jso...