shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation <<EOF
{
"collection" : "relation",
"from" : [
"female",
"male",
"animal"
],
"to" : [
"female",
"male",
"animal"
]
}
EOF
HTTP/1.1 Accepted
content-type: application/json; charset=utf-8
etag: _ZXF5weS--D
x-content-type-options: nosniff
{
"error" : false,
"code" : 202,
"graph" : {
"_key" : "social",
"numberOfShards" : 1,
"replicationFactor" : 1,
"minReplicationFactor" : 1,
"isSmart" : false,
"edgeDefinitions" : [
{
"collection" : "relation",
"from" : [
"animal",
"female",
"male"
],
"to" : [
"animal",
"female",
"male"
]
}
],
"orphanCollections" : [ ],
"_rev" : "_ZXF5weS--D",
"_id" : "_graphs/social",
"name" : "social"
}
}