shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF { "startVertex" : "persons/alice", "graphName" : "knows_graph", "direction" : "outbound", "filter" : "if (vertex.name === \"Bob\" || vertex.name === \"Charlie\") { return \"exclude\";}return;" } EOF HTTP/1.1 undefined content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "result" : { "visited" : { "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_XWq50Ra--_", "name" : "Alice" }, { "_key" : "dave", "_id" : "persons/dave", "_rev" : "_XWq50Ri--_", "name" : "Dave" } ], "paths" : [ { "edges" : [ ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_XWq50Ra--_", "name" : "Alice" } ] }, { "edges" : [ { "_key" : "105845", "_id" : "knows/105845", "_from" : "persons/alice", "_to" : "persons/bob", "_rev" : "_XWq50Rm--_", "vertex" : "alice" }, { "_key" : "105852", "_id" : "knows/105852", "_from" : "persons/bob", "_to" : "persons/dave", "_rev" : "_XWq50Rq--B", "vertex" : "bob" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_XWq50Ra--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_XWq50Re--_", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", "_rev" : "_XWq50Ri--_", "name" : "Dave" } ] } ] } }, "error" : false, "code" : 200 }