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

39 lines
989 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.edges().toArray();
[
{
"_id" : "relation/aliceAndBob",
"_key" : "aliceAndBob",
"_rev" : "293857627",
"_from" : "female/alice",
"_to" : "male/bob",
"type" : "married"
},
{
"_id" : "relation/aliceAndCharly",
"_key" : "aliceAndCharly",
"_rev" : "294119771",
"_from" : "female/alice",
"_to" : "male/charly",
"type" : "friend"
},
{
"_id" : "relation/aliceAndBob",
"_key" : "aliceAndBob",
"_rev" : "293857627",
"_from" : "female/alice",
"_to" : "male/bob",
"type" : "married"
},
{
"_id" : "relation/bobAndDiana",
"_key" : "bobAndDiana",
"_rev" : "294512987",
"_from" : "male/bob",
"_to" : "female/diana",
"type" : "friend"
}
]