Reputation: 269
I want to use GraphJSON format in Alchemy.js for visualization . After getting the Result of CQL execution , I want to convert the Result data to GraphJSON format . Is there some API available or I will have to iterate the collection and create the GraphJSON format?. I am using Java API.
Thanks in advance.
Upvotes: 3
Views: 2445
Reputation: 41676
I wrote an demo app that queries Neo4j and returns graphjson to render with alchemy.js
you can find it here:
running against an non-authenticated local server by default
this is the code that's used to create the graph-json
https://github.com/jexp/cy2neo/blob/master/scripts/neo.js#L36
Upvotes: 2