I\'m using gds and getting nodeIds back from a function. I want to return the node if it doesn\'t belong to a specific relationship but if it does then return the other node