cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Show only 1 relationship out of multiple relationships between nodes

Hi guys, just wondering if there is anyone encounter this issue before where you have multiple relationships between two nodes (with all different properties) and you trying to filter them (by nominate the property) in the graph to show only 1 specific relationship between two nodes.

The result table presented will only show that specific relationship, but the graph visual still present all the relationships between these nodes. Any ideas please?

Perhaps a diagram here may help demonstrate:

2X_7_7423f94bbf048ea2fe522f9110ef1b60886f00c7.png

query:
match (A) - [rel:Payment to] -> (B)
where rel.property = 1
return A,B

Thank you very much!

1 REPLY 1

clem
Graph Steward

Try:

match (A) - [rel:Payment to] -> (B)
where rel.property = 1
return A,rel, B

I think this will at least work in Bloom, because if you don't specify returning the relationship, Bloom only shows the Nodes.