我graph在 ArangoDB 中有一个。如何创建具有指定_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 的多个边。