I had a problem retrieving a path in neo4j, excluding a specific label.
For example, I have
/
(a)
\
with hnode has a label Deleted.
I have a request
MATCH path = (n)-[*]->(child) where id(n)={id of node a} and NOT child:Deleted RETURN path
then I want this request to return the full path, but exclude the subtree node h, since node his Deleted.
the return tree should be like
(a)
\
But the request seems to be inoperative.
Can anyone help me on this.
thank
source
share