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

14 lines
322 B
Plaintext

arangosh> var graph_module = require("org/arangodb/general-graph");
arangosh> graph_module._directedRelation("has_bought", ["Customer", "Company"], ["Groceries", "Electronics"]);
{
"collection" : "has_bought",
"from" : [
"Customer",
"Company"
],
"to" : [
"Groceries",
"Electronics"
]
}