How to return nodes as threes connected with an relationship

Hello @amf3tam1nkapvp :slight_smile:

Can you try this?

MATCH p=(:Organization)-[:OWNS*3]->(:Organization)
RETURN p

Otherwise, in the Neo4j Desktop parameters, you can also uncheck the setting Connect result nodes.
image

Additionally, the displayed result may be different from what is returned since graphical views display each node / relation once. You should check in table to see the "rigth" result.
image

Regards,
Cobra

1 Like