I really do not want to double-post, but just in case this group is mostly inactive on Stackoverflow ... I have results from a Graph Database, results obtained through GraphQL and would like to visualize it using js.cytoscape.
http://stackoverflow.com/questions/40918996/convert-graphql-to-cytoscape-jsonMy question now is: How can I effectively convert from my GraphQL retrieved format
{
"application" : {
"has-instance" : [
{
"has-table" : [
{
"has-column" : [
{
"refers-to-table" : {
"label" : "EINGANGHEADER"
},
"label" : "EINGANG_DAT"
},
{
"label" : "KANAL",
"refers-to-table" : {
"label" : "EINGANGHEADER"
}
}
],
"label" : "VE_VKE_EINGANGHEADER"
},
{
"has-column" : [
{
"label" : "PRODUKT",
"refers-to-table" : {
"label" : "EINGANG"
}
},
{
"label" : "ERFASSUNG_TS",
"refers-to-table" : {
"label" : "EINGANGDATEN"
}
},
{
"label" : "ID",
"refers-to-table" : {
"label" : "EINGANG"
}
},
{
"label" : "WEITERLEITUNG_TS",
"refers-to-table" : {
"label" : "EINGANG"
}
}
],
"label" : "VE_VKE_EINGANG"
}
],
"label" : "VE"
}
]
}
}
to the Cytoscape data format?