【发布时间】:2019-04-19 12:30:46
【问题描述】:
我在 ArangoDB 中有一个 graph。如何使用指定的_key 值创建边缘?我的代码:
edge_attributes = {"_key": "ab", "count": 0}
graph.createEdge(collection_edges_name, node_from_id, node_to_id, edge_attributes)
我可以看到count 以及_from 和_to 的正确值,但_key 是一些随机数。
如何创建具有特定_key 的边缘?我想指定键以通过键快速查询边,并防止从节点 A 到节点 B 的多个边。
【问题讨论】:
标签: python graph arangodb pyarango