neo4j-contrib / neovis.js

Neo4j + vis.js = neovis.js. Graph visualizations in the browser with data from Neo4j.
Apache License 2.0
1.59k stars 324 forks source link

How do I get the return value of cypher #373

Closed SeXyTeA-x closed 9 months ago

SeXyTeA-x commented 9 months ago

Sorry, I have another question, when I am using this. Viz. RenderWithCypher (cypher) execution of cypher statement, how to obtain the return values of cypher statements. For example, if I am executing MATCH p = allshortestpaths((a)-[r*0..4]-(b)) WHERE a.name = "${this.object1}" AND b.name= "${this.object2}" RETURN p,extract(n in nodes(p)| n.name) how do I get the returned extract(n in nodes(p)| n.name) value

thebestnom commented 9 months ago

Use the neo4j driver directly, neovis doesn't saves the output directly, you can use vis.nodes or vis.edges and from there get the raw node, but you can't get any other data from there

SeXyTeA-x commented 9 months ago

Ok, I see. Thank you