1

When I run a query such as match (n) return n all of the nodes are returned, however, the relationships and how the nodes are connected does not appear to be in the response data. However, the graph manages to draw the full data model with relationships.

What is the browser doing to gather together this information, or am I missing how this can be obtained from the response data?

I have been using neomodel to query the data, however the inflate method walks the structure and returns too slowly. I would like to achieve a similar response without the need to walk the entire structure and was wondering what the recommended approach was?

Andrew Gill
  • 361
  • 1
  • 14
  • Not sure exactly what you're asking. The browser can render your results both in tabular and graphical format (there's an option in the result window). – David Makogon Sep 21 '18 at 16:14
  • What I meant was that the graphical format has data (the relationships) that the tabular format does not appear to. – Andrew Gill Sep 24 '18 at 07:37

1 Answers1

2

[EDITED]

The neo4j browser has an "autoComplete" setting (labelled "Connect result nodes" in the latest version) that enables/disables querying for the relationships between the nodes in every result set. (Click on the gear icon in the leftmost panel of the browser to see the settings.)

In other words, the neo4j browser has to perform extra queries to get those relationships -- they are not returned for free when a query just asks for nodes.

If you are curious how autoComplete is implemented, here is a link to some of the actual code.

cybersam
  • 63,203
  • 6
  • 53
  • 76