I wanted to traverse the graph from my origin node, and get all nodes in the
next level only (max depth == 1) such that they have "foo" relationship type
with the origin node but not "bar" relationship type.
I set my return filter to be:
{
"language" : "javascript",
"body" : "position.length() > 0 &&
position.lastRelationship().getType() != 'bar'"
}
And the body of the request is:
{
"order" : "breadth first",
"relationships" : [{"direction" : "all", "type" : "foo"}],
"uniqueness" : "node_global",
"prune_evaluator" : {"language":"builtin", "name" : "none"},
"max_depth" : 1,
"return_filter" : return_filter (see above)
}
However, it still gets all nodes with "foo" relationship, even those with
"bar" relationship. Where did I do wrong? What's the right way to exclude
nodes connected with certain relationship type(s) when traversing the
graph?
Thanks!
Nuo
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user