I am using this json for insert vertex...
{
"id": "15",
"label": "organization",
"orgid": [{
"_value": "15",
"id": "5267ec4b-a39e-4d77-8dea-668cb36307bc"
}],
"name": [{
"_value": "org.15",
"id": "2e5271a6-ddd8-48b9-8ff6-be41e19f82f8"
}],
"org": "org"
}
...and its working fine..but the problem is when I am trying to insert Edge ..this is my json for Edge ... Pattern 1:
{
"label": "parent",
"id": "b9ae257a-ab49-487b-a165-57bd5330168b",
"_sink": "15",
"_sinkLabel": "organization",
"_sinkPartition": "org|10",
"_vertexId": "10",
"_vertexLabel": "organization",
"_isEdge": true,
"org": "org"
}
Pattern 2.
{
"id": "b9ae257a-ab49-487b-a165-57bd5330168b",
"label": "parent",
"type": "edge",
"inVLabel": "organization",
"outVLabel": "organization",
"inV": "15",
"outV": "1"
}
.. I tried both but no result ...it saved as Vertex not Edge....
Please someone help me to figure it out...I need the valid json format for insert an Edge...
Thank you!
N.B.: From code behind I did this already, now my challenge is to save BULK data from json to Cosmos Graph DB (Gremlin API) by using Azure Data Factory 'Copy' activity.