shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF { "startVertex" : "persons/alice", "graphName" : "knows_graph", "direction" : "outbound", "init" : "result.visited = 0; result.myVertices = [ ];", "visitor" : "result.visited++; result.myVertices.push(vertex);" } EOF HTTP/1.1 200 OK content-type: application/json; charset=utf-8 { "result" : { "visited" : 4, "myVertices" : [ { "_id" : "persons/alice", "_key" : "alice", "_rev" : "926161618", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", "_rev" : "926358226", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", "_rev" : "926620370", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", "_rev" : "926816978", "name" : "Dave" } ] }, "error" : false, "code" : 200 }