1
0
Fork 0
arangodb/Documentation/Examples/HttpGharialReplaceEdgeCol.g...

45 lines
769 B
Plaintext

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation
{
"collection" : "relation",
"from" : [
"female",
"male",
"animal"
],
"to" : [
"female",
"male",
"animal"
]
}
HTTP/1.1 200 OK
content-type: application/json
etag: 1454762331
{
"error" : false,
"code" : 200,
"graph" : {
"name" : "social",
"edgeDefinitions" : [
{
"collection" : "relation",
"from" : [
"animal",
"female",
"male"
],
"to" : [
"animal",
"female",
"male"
]
}
],
"orphanCollections" : [ ],
"_id" : "_graphs/social",
"_rev" : "1454762331"
}
}