1
0
Fork 0
arangodb/Documentation/Examples/api-graph-create-edge

21 lines
450 B
Plaintext

> curl --data @- -X POST --dump - http://localhost:8529/_api/graph/graph1/edge
{"_key" : "edge1", "_from" : "vert2", "_to" : "vert1", "optional1" : "val1"}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
etag: 57595366
{
"edge": {
"_id": "e/edge1",
"_rev": "57595366",
"_key": "edge1",
"_from": "v/vert2",
"_to": "v/vert1",
"$label": null,
"optional1": "val1"
},
"error": false,
"code": 201
}