I have 2 nodes: (A), (B) related [: FRIEND]
When I run the following command,
start n = node(*) match (n)-[r:FRIEND]-(b) return n.name, b.name;
it returns 2 rows: A, B and B, A.
I wonder how to make it return only one record, because the relation is bi-directional, A - [: FRIEND] -B and B - [: FRIEND] -A is considered the same result.
Thanks.
source share