How to show Relationship for specific node in cypher neo4j with neovis.js?

115 Views Asked by At

Is there a way to get a relationships of specific node only in neovis.js. From the Movie sample limited the node to 2. Now we have two movie nodes The Matrix and The Matrix Reloaded, want to show the relationship of the The Matrix node only, not for The Matrix Reloaded.

MATCH (n:Movie) WITH n limit 2 OPTIONAL MATCH (n:Movie{title:'The Matrix'})-[r]-(b) RETURN n,r,b

Expecting a relationship like this image.

Expected Result

But my query return relationship for both nodes.

enter image description here

How to achive this in neovis.js?

0

There are 0 best solutions below