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

68 lines
1.6 KiB
Plaintext

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