neo4j - how to use two match statements in a cypher query -


i'd combine 2 requests 1 query , i'm not sure happens when 2 match statements used in single cypher query.

say have list of friends , i'd see list of friends each of uncles , siblings listed in collection. can have 2 match statements job? e.g.

match friends-[:childof]->parents-[:brother]->uncles     , friends-[:childof]->parents<-[:childof]-siblings return friends, collect(siblings), collect(uncles) 

however, if query this, returns no results.

since have chosen parents in first match class, can -

match friends-[:childof]->parents-[:brother]->uncles friends, parents, uncles match parents<-[:childof]-siblings return friends, collect(siblings), collect(uncles) 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -