I have 2 nodes: (A), (B), connected by [: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 relationship is bidirectional, A -[:FRIEND]-B and B-[:FRIEND]-A is considered same result.
Thanks.