How to determine the nodes connected to a farther specific label

(Sucheta) #1


According to the screenshot -

My query is -

 MATCH (n)-[*]-(find)  WHERE =~'(?i).*Success.*'  RETURN n,r,find

Here, we get all the nodes that are connected to Success, till 3 levels of Relationships. However, we want nodes connected to Success with Label "API" only .

How to obtain that ?

(Elaine Rosenberg) #2

If you are only interested in nodes with the label API, then your query should be MATCH (n:API).... rather than MATCH (n)