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

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: [ ] ]