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", "init" : "result.visited = 0; result.myVertices = [ ];", "visitor" : "result.visited++; result.myVertices.push(vertex);" } EOF HTTP/1.1 OK content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "result" : { "visited" : 4, "myVertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_ZXF6aZi---", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_ZXF6aZm---", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", "_rev" : "_ZXF6aZm--A", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", "_rev" : "_ZXF6aZm--D", "name" : "Dave" } ] }, "error" : false, "code" : 200 }