Thank you Andrew for responding,
After running ur given format I am getting the data with nodes but I want now print with only selName can you suggest with same query.
Below is json format current I am getting,
Below is query,
MATCH (n) WHERE ID(n)=125 CALL apoc.path.expandConfig(n,{relationshipFilter: '',minLevel:1, maxLevel: 20,labelFilter:'-Dense|-Product|-ProductType', maxLevel:4}) YIELD path RETURN [node in nodes(path) | properties(node)] as nodes LIMIT 8
If you only need a certain property, then specify that in the list projection. Looks like you have differing property keys depending on certain nodes, so we can use coalesce() to find the first non-null value:
MATCH (n) WHERE ID(n)=125
CALL apoc.path.expandConfig(n,{relationshipFilter: '',minLevel:1, maxLevel: 20,labelFilter:'-Dense|-Product|-ProductType', maxLevel:4}) YIELD path
RETURN [node in nodes(path) | coalesce(node.selName, node.sellerName)] as nodes
LIMIT 8
The query you ran is not the query I provided. You have an extra segment in the list projection that wasn't there before, and you're using COLLECT() instead of COALESCE() (which won't work in this case). Is there some reason the query I provided isn't working for you?
yes its working fine Andrew there is a small mistake done by me i.e.,I written return twice...
Thanks again..
Do we have any solution for,
How to do expand and collapse PARENT AND child nodes in NeoVis by clicking on Nodes.
I am getting result with full nodes information but I want expand and collapse nodes for same results.
Please reply me as soon.
That's a completely different question unrelated to this one. I think you had best create a separate question for it in the appropriate category. I haven't worked with Neovis myself here, others may be able to help.