I have a graph where each relationship has a uuid.
SET r.uuid= apoc.create.uuid()
Is there an efficient way to find these nodes again if all I know is the uuid of the relationship?
Because I don't know the Labels of the nodes or the relationship I end up with this
WHERE r.uuid="the uuid"
I expect this is a REALLY BAD thing to do, as it would get every single pair of nodes and then filter to the 1 joined by the relationship with that uuid.
Is there a better way to do this or do I need to re-think my design?