Multiple relationships in Match Cypher
问题 Trying to find similar movies on the basis of tags. But I also need all the tags for the given movie and its each similar movie (to do some calculations). But surprisingly collect(h.w) gives repeated values of h.w (where w is a property of h ) Here is the cypher query. Please help. MATCH (m:Movie{id:1})-[h1:Has]->(t:Tag)<-[h2:Has]-(sm:Movie), (m)-[h:Has]->(t0:Tag), (sm)-[H:Has]->(t1:Tag) WHERE m <> sm RETURN distinct(sm), collect(h.w) Basically a query like MATCH (x)-[h]->(y), (a)-[H]->(b)