Hi,
Is there any library which helps me to convert the dgraph into the d3.js format.
Something like below (d3.js),
{
"nodes": [
{
"id": "1",
"labels": ["User"],
"properties": {
"userId": "aman"
}
},
{
"id": "8",
"labels": ["Project"],
"properties": {
"name": "dgraph",
"title": "dgrpah.js",
"description": "Dgraph visualization using D3.js.",
"url": "aman.com"
}
}
],
"relationships": [
{
"id": "7",
"type": "seng",
"startNode": "1",
"endNode": "8",
"properties": {
"from": 5455154685
},
"source": "1",
"target": "8",
"linknum": 1
}
]
}
Initially all the nodes and then the relationships.
Thanks.