I have a graph database in which there is a root vertex with some "id= Xyz".This vertex is related to 3 more vertices with an edge having relationship of a "child". Now these 3 vertices themselves have 2 connected vertices each with the same relationship as "child".
I want to get the info of all the directly or indirectly connected vertices keeping the nested structure maintained. The JSON output should be in the nested form for indirect vertices.
Can we do this ?
And what to do if the depth of tree increase to n Please help