mirror of https://gitee.com/bigwinds/arangodb
8 lines
483 B
Plaintext
8 lines
483 B
Plaintext
arangosh> var graph_module = require("org/arangodb/general-graph");
|
|
arangosh> var edgeDefinitions = graph_module._edgeDefinitions(
|
|
........> graph_module._relation("friend_of", ["Customer"]), graph_module._relation(
|
|
........> "has_bought", ["Customer", "Company"], ["Groceries", "Electronics"]));
|
|
[ArangoError 1935: Invalid number of arguments. Expected: 3]
|
|
arangosh> graph_module._create("myStore", edgeDefinitions);
|
|
[ Graph myStore EdgeDefinitions: [ ] VertexCollections: [ ] ]
|