shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF { "startVertex" : "persons/alice", "graphName" : "knows_graph", "direction" : "any", "strategy" : "depthfirst" } EOF HTTP/1.1 200 OK content-type: application/json; charset=utf-8 { "result" : { "visited" : { "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", "_rev" : "_U-_qVyK--A", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", "_rev" : "_U-_qVyO---", "name" : "Dave" }, { "_key" : "eve", "_id" : "persons/eve", "_rev" : "_U-_qVyO--_", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", "_rev" : "_U-_qVyO--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", "_rev" : "_U-_qVyK--A", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", "_rev" : "_U-_qVyO---", "name" : "Dave" }, { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" } ], "paths" : [ { "edges" : [ ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" } ] }, { "edges" : [ { "_key" : "11341", "_id" : "knows/11341", "_from" : "persons/alice", "_to" : "persons/bob", "_rev" : "_U-_qVyO--A" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" } ] }, { "edges" : [ { "_key" : "11341", "_id" : "knows/11341", "_from" : "persons/alice", "_to" : "persons/bob", "_rev" : "_U-_qVyO--A" }, { "_key" : "11345", "_id" : "knows/11345", "_from" : "persons/bob", "_to" : "persons/charlie", "_rev" : "_U-_qVyO--B" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", "_rev" : "_U-_qVyK--A", "name" : "Charlie" } ] }, { "edges" : [ { "_key" : "11341", "_id" : "knows/11341", "_from" : "persons/alice", "_to" : "persons/bob", "_rev" : "_U-_qVyO--A" }, { "_key" : "11348", "_id" : "knows/11348", "_from" : "persons/bob", "_to" : "persons/dave", "_rev" : "_U-_qVyS---" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", "_rev" : "_U-_qVyO---", "name" : "Dave" } ] }, { "edges" : [ { "_key" : "11341", "_id" : "knows/11341", "_from" : "persons/alice", "_to" : "persons/bob", "_rev" : "_U-_qVyO--A" }, { "_key" : "11354", "_id" : "knows/11354", "_from" : "persons/eve", "_to" : "persons/bob", "_rev" : "_U-_qVyS--A" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", "_rev" : "_U-_qVyO--_", "name" : "Eve" } ] }, { "edges" : [ { "_key" : "11341", "_id" : "knows/11341", "_from" : "persons/alice", "_to" : "persons/bob", "_rev" : "_U-_qVyO--A" }, { "_key" : "11354", "_id" : "knows/11354", "_from" : "persons/eve", "_to" : "persons/bob", "_rev" : "_U-_qVyS--A" }, { "_key" : "11351", "_id" : "knows/11351", "_from" : "persons/eve", "_to" : "persons/alice", "_rev" : "_U-_qVyS--_" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", "_rev" : "_U-_qVyO--_", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" } ] }, { "edges" : [ { "_key" : "11351", "_id" : "knows/11351", "_from" : "persons/eve", "_to" : "persons/alice", "_rev" : "_U-_qVyS--_" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", "_rev" : "_U-_qVyO--_", "name" : "Eve" } ] }, { "edges" : [ { "_key" : "11351", "_id" : "knows/11351", "_from" : "persons/eve", "_to" : "persons/alice", "_rev" : "_U-_qVyS--_" }, { "_key" : "11354", "_id" : "knows/11354", "_from" : "persons/eve", "_to" : "persons/bob", "_rev" : "_U-_qVyS--A" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", "_rev" : "_U-_qVyO--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" } ] }, { "edges" : [ { "_key" : "11351", "_id" : "knows/11351", "_from" : "persons/eve", "_to" : "persons/alice", "_rev" : "_U-_qVyS--_" }, { "_key" : "11354", "_id" : "knows/11354", "_from" : "persons/eve", "_to" : "persons/bob", "_rev" : "_U-_qVyS--A" }, { "_key" : "11345", "_id" : "knows/11345", "_from" : "persons/bob", "_to" : "persons/charlie", "_rev" : "_U-_qVyO--B" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", "_rev" : "_U-_qVyO--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", "_rev" : "_U-_qVyK--A", "name" : "Charlie" } ] }, { "edges" : [ { "_key" : "11351", "_id" : "knows/11351", "_from" : "persons/eve", "_to" : "persons/alice", "_rev" : "_U-_qVyS--_" }, { "_key" : "11354", "_id" : "knows/11354", "_from" : "persons/eve", "_to" : "persons/bob", "_rev" : "_U-_qVyS--A" }, { "_key" : "11348", "_id" : "knows/11348", "_from" : "persons/bob", "_to" : "persons/dave", "_rev" : "_U-_qVyS---" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", "_rev" : "_U-_qVyO--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", "_rev" : "_U-_qVyO---", "name" : "Dave" } ] }, { "edges" : [ { "_key" : "11351", "_id" : "knows/11351", "_from" : "persons/eve", "_to" : "persons/alice", "_rev" : "_U-_qVyS--_" }, { "_key" : "11354", "_id" : "knows/11354", "_from" : "persons/eve", "_to" : "persons/bob", "_rev" : "_U-_qVyS--A" }, { "_key" : "11341", "_id" : "knows/11341", "_from" : "persons/alice", "_to" : "persons/bob", "_rev" : "_U-_qVyO--A" } ], "vertices" : [ { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", "_rev" : "_U-_qVyO--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", "_rev" : "_U-_qVyK--_", "name" : "Bob" }, { "_key" : "alice", "_id" : "persons/alice", "_rev" : "_U-_qVyK---", "name" : "Alice" } ] } ] } }, "error" : false, "code" : 200 }