Hi,
I need to get nodes and relationships with 1 to 3 hops excluding relationship types.
All relationships have the attribute "relType" ('10','20','30',...)
I want to exclude '20', so it won't return the relationships and also not the nodes that has ONLY relType='20'
i started with:
MATCH (c {nodeId: '123'})-[r*1..3]-(p)
So far it returns all.
Now, where to put the "WHERE" cluase?
" WHERE r.relType <> '20' " doesn't work because r is an array of rels...
Also consider this:
"c" and "p" can be any kind of nodes (Person, Company, Factory...)
Thanks,