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