I have a graph
in ArangoDB. How to create edge with specified _key
value? My code:
edge_attributes = {"_key": "ab", "count": 0}
graph.createEdge(collection_edges_name, node_from_id, node_to_id, edge_attributes)
I can see proper values of count
as well as _from
and _to
, but _key
is some random number.
How I can create an edge with a specific _key
? I want to specify key to fast querying edges by key as well as preventing multiple edges from node A to node B.