Reputation: 792
ie all nodes that are attached to the node with the name "Immunodeficiency" and also attached to the node with the name "autosomal recessive"
I tried this:
MATCH (a)-[r*]->(b)
WHERE a.name="Immunodeficiency" AND b.name="autosomal recessive"
return a,r,b
But it's not working. It's just returning a and b without any relationships or nodes in between
Upvotes: 0
Views: 308
Reputation: 6534
Try to return the paths
MATCH p=(a)-[r*]->(b)
WHERE a.name="Immunodeficiency" AND
b.name="autosomal recessive"
return p
Upvotes: 1