I'm looking to make a cypher query which finds all outgoing relationships from node, excluding a couple. Here's an example:
START node=node(5), excludeRels=rel(7,8,9)
MATCH node-[rels]->x
RETURN rels
But I would like to exclude the rels in excludeRels
from the returned rels
. So if node(5)
has outgoing relationships 6,7,8,9 and 10, I would like 6 and 10 to be returned.
Is this possible?
rel(7,8,9)
doing? I couldn't find any infos aboutrel()
except for the use caserel(path)
where it returns a collection of the relationships ofpath
. – gogo_gorilla