neo4j / neo4j-browser

Neo4j Browser is the general purpose user interface for working with Neo4j. Query, visualize, administrate and monitor the database.
https://neo4j.com
GNU General Public License v3.0
689 stars 348 forks source link

Unexpected Output #923

Closed Tarunjot-Singh closed 4 years ago

Tarunjot-Singh commented 5 years ago
software name version
OS Mac mojave
Web browser Chrome
node.js
npm
yarn
Neo4j Browser Chrome (Latest Version)
Neo4j 3.5.3

Description

If we return a relationship from version 3.0.3 we get a graph view while in version 3.5.3 if we return a relationship we dont get a graph view, By default it shows table view.

Reproduce Steps

Lets take a simple example MATCH (n :Person{ name: 'Tarun' })-[r:KNOWS]-(c) RETURN r If i run the Above Query in Neo4j Enterprise Version 3.0.3 its gives a Graph View, but in Neo4j Enterprise Version 3.5.3, by default it give the table view. Screenshot 2019-04-08 at 11 36 57 AM

Expected Behavior I was Expecting a Graph View.

What needs to be done to address this issue? Ideally, provide a pull request with a fix.

oskarhane commented 5 years ago

Hi and thanks for the report @Tarunjot-Singh. This is however expected since the move to use Bolt rather than Neo4j:s HTTP transaction endpoint produce different results. HTTP has a so called graph result format available which does some magic and return things that the user didn't ask for whereas you need to be more explicit in Bolt. To get similar results in Neo4j 3.1+ (I think that's when we started using bolt), try returning the path:

MATCH p=(n :Person{ name: 'Tarun' })-[r:KNOWS]-(c) RETURN p