In Neo4j Browser you see all edges between resultant nodes when you only queried for nodes. For example,
MATCH (n:Greeting) RETURN n
shows nodes with the label 'Greeting' as well as all relationships between them.
This is true for other more complicated queries like
MATCH (n:Greeting {message: 'Hello'}) RETURN n
But when you use REST API you get only the nodes. Actually this is the correct behavior and is obvious on resultant Table/Text/Code view.
That means Neo4j browser does some additional action when the result view is set to 'Graph.'
How can this be done?
Can we do this by just adding another statement, without modification of the original query?