I need some basic help. The first call works fine, the second one results is
no result at all. What am I doing wrong?

(1) 

curl -H Accept:application/json -H Content-Type:application/json -X POST
http://localhost:7474/db/data/node/2/paths -d
'{"to":"http://localhost:7474/db/data/node/5","relationships":{"type":"KNOWS"},"algorithm":"shortestPath","max_depth":
5}'

[ {
  "start" : "http://localhost:7474/db/data/node/2";,
  "nodes" : [ "http://localhost:7474/db/data/node/2";,
"http://localhost:7474/db/data/node/3";,
"http://localhost:7474/db/data/node/4";,
"http://localhost:7474/db/data/node/5"; ],
  "length" : 3,
  "relationships" : [ "http://localhost:7474/db/data/relationship/0";,
"http://localhost:7474/db/data/relationship/1";,
"http://localhost:7474/db/data/relationship/2"; ],
  "end" : "http://localhost:7474/db/data/node/5";

So far, so good.

(2)

curl -H Accept:application/json -H Content-Type:application/json -X POST
http://localhost:7474/db/data/node/2/paths -d
'{"to":"http://localhost:7474/db/data/node/5","relationships":{"type":"KNOWS"},"algorithm":"shortestPath","prune_evaluator":
{"language":"javascript","body":"position.length() > 0;"}}'

Nothing is returned.

Adding a max_depth makes the call work again, but the prune_evaluator is
simply ignored. What am I missing?

Thanks!
Alex


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/REST-at-depth-tp3304387p3305738.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to