1
0
Fork 0
arangodb/Documentation/Examples/RestTraversalInbound.generated

67 lines
1.6 KiB
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal
{ "startVertex": "persons/alice", "graphName" : "knows_graph", "direction" : "inbound"}
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
{
"result" : {
"visited" : {
"vertices" : [
{
"_id" : "persons/alice",
"_key" : "alice",
"_rev" : "1308452290",
"name" : "Alice"
},
{
"_id" : "persons/eve",
"_key" : "eve",
"_rev" : "1309304258",
"name" : "Eve"
}
],
"paths" : [
{
"edges" : [ ],
"vertices" : [
{
"_id" : "persons/alice",
"_key" : "alice",
"_rev" : "1308452290",
"name" : "Alice"
}
]
},
{
"edges" : [
{
"_id" : "knows/1310156226",
"_key" : "1310156226",
"_rev" : "1310156226",
"_from" : "persons/eve",
"_to" : "persons/alice"
}
],
"vertices" : [
{
"_id" : "persons/alice",
"_key" : "alice",
"_rev" : "1308452290",
"name" : "Alice"
},
{
"_id" : "persons/eve",
"_key" : "eve",
"_rev" : "1309304258",
"name" : "Eve"
}
]
}
]
}
},
"error" : false,
"code" : 200
}