shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial <<EOF
{
"name" : "myGraph",
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"startVertices"
],
"to" : [
"endVertices"
]
}
],
"isSmart" : true,
"options" : {
"numberOfShards" : 9,
"smartGraphAttribute" : "region"
}
}
EOF
HTTP/1.1 undefined
content-type: application/json; charset=utf-8
etag: _XUJy2QO--B
x-content-type-options: nosniff
{
"error" : false,
"code" : 202,
"graph" : {
"_key" : "myGraph",
"numberOfShards" : 9,
"replicationFactor" : 1,
"isSmart" : true,
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"startVertices"
],
"to" : [
"endVertices"
]
}
],
"orphanCollections" : [ ],
"initial" : "startVertices",
"initialCid" : 100634,
"smartGraphAttribute" : "region",
"_rev" : "_XUJy2QO--B",
"_id" : "_graphs/myGraph",
"name" : "myGraph"
}
}