MATCH (a)-[:PRODUCED
]->(b) RETURN a
- It's displaying 8 nodes. Its ok. But when i am going to return it's properties it's displaying duplicate values.
MATCH (a)-[:PRODUCED
]->(b) RETURN a.name
- It's returning 15 rows. According to me as (a) is related with (b) 15 times and thats why its returning duplicate record but I don't need that. I need only unique 8 rows.
How will I do that or what will be the exact cypher query?