Closed dougajmcdonald closed 6 years ago
I figured it out, had to change the query to include as resultDataContents
property, this is what my payload looks like.
{"statements": [ {
"statement": "MATCH (n) OPTIONAL MATCH (n)-[r]-() RETURN n, r",
"resultDataContents":["graph"]
}]}
Hi there,
I'm querying Neo4J 3.3.5 with the following query:
MATCH (n) OPTIONAL MATCH (n)-[r]-() RETURN n, r;
This returns me data which looks like this:
I'm seeing an error in neo4jd3
Cannot read property 'nodes' of undefined
where it seems to be expecting to findnodes
under another propertygraph
(as per this doc: https://www.npmjs.com/package/neo4jd3#neo4j-data-format) but as you can see from my data, I don't get that nestedgraph
property mine just hangs straight out ofdata[]
.Any ideas how I can reformat things? or is this a version issue?