在 ArangoDB 中插入一条新边以绘制图形

Insert a new Edge to graph in ArangoDB

我正在使用 Arangodb 3.1.25。我需要对在集合边缘中插入边缘进行一些测试。我试过了

Insert {_from : "s1" , _to :"s2", property:12}

但它不起作用。

错误:

Query: edge attribute missing or invalid (while executing)

我该如何解决这个问题?

您已在末尾添加边缘集合的名称。

Insert {_from : "s1" , _to :"s2", property:12} in collectionName