shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF
{
"startVertex" : "persons/alice",
"graphName" : "knows_graph",
"direction" : "outbound",
"minDepth" : 2
}
EOF
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : {
"visited" : {
"vertices" : [
{
"_key" : "charlie",
"_id" : "persons/charlie",
"_rev" : "_V8R1PcO--_",
"name" : "Charlie"
},
{
"_key" : "dave",
"_id" : "persons/dave",
"_rev" : "_V8R1PcO--B",
"name" : "Dave"
}
],
"paths" : [
{
"edges" : [
{
"_key" : "13935",
"_id" : "knows/13935",
"_from" : "persons/alice",
"_to" : "persons/bob",
"_rev" : "_V8R1PcS--_",
"vertex" : "alice"
},
{
"_key" : "13939",
"_id" : "knows/13939",
"_from" : "persons/bob",
"_to" : "persons/charlie",
"_rev" : "_V8R1PcS--B",
"vertex" : "bob"
}
],
"vertices" : [
{
"_key" : "alice",
"_id" : "persons/alice",
"_rev" : "_V8R1PcK--B",
"name" : "Alice"
},
{
"_key" : "bob",
"_id" : "persons/bob",
"_rev" : "_V8R1PcK--D",
"name" : "Bob"
},
{
"_key" : "charlie",
"_id" : "persons/charlie",
"_rev" : "_V8R1PcO--_",
"name" : "Charlie"
}
]
},
{
"edges" : [
{
"_key" : "13935",
"_id" : "knows/13935",
"_from" : "persons/alice",
"_to" : "persons/bob",
"_rev" : "_V8R1PcS--_",
"vertex" : "alice"
},
{
"_key" : "13942",
"_id" : "knows/13942",
"_from" : "persons/bob",
"_to" : "persons/dave",
"_rev" : "_V8R1PcS--D",
"vertex" : "bob"
}
],
"vertices" : [
{
"_key" : "alice",
"_id" : "persons/alice",
"_rev" : "_V8R1PcK--B",
"name" : "Alice"
},
{
"_key" : "bob",
"_id" : "persons/bob",
"_rev" : "_V8R1PcK--D",
"name" : "Bob"
},
{
"_key" : "dave",
"_id" : "persons/dave",
"_rev" : "_V8R1PcO--B",
"name" : "Dave"
}
]
}
]
}
},
"error" : false,
"code" : 200
}