1
0
Fork 0
arangodb/Documentation/Examples/generalGraphFluentAQLInEdge...

15 lines
448 B
Plaintext

arangosh> var examples = require("org/arangodb/graph-examples/example-graph.js");
arangosh> var graph = examples.loadGraph("social");
arangosh> var query = graph._vertices([{name: "Alice"}, {name: "Bob"}]);
arangosh> query.inEdges({type: "married"}).toArray();
[
{
"_id" : "relation/aliceAndBob",
"_key" : "aliceAndBob",
"_rev" : "65496514",
"_from" : "female/alice",
"_to" : "male/bob",
"type" : "married"
}
]