agensgraph icon indicating copy to clipboard operation
agensgraph copied to clipboard

[AgensBrowser] does not return relations by default

Open mdobri opened this issue 5 years ago • 4 comments

  • query match (a)-[*..5]-(b) where a.name='A' return * returns only nodes, but no relationship between nodes. Expected to have relationships also displayed

agensbrowser_query agensbrowser_verifydata neo4j_query

mdobri avatar Mar 07 '19 09:03 mdobri

AgensBrowser displays only what the return specifies match (a)-[*..5]-(b) where a.name='A' return *; will return only a and b, both nodes, no edges, since both a and b are nodes

match (a)-[r]-(b) return *; will return both nodes and edges because r is included in the return

To get AgensBrowser to display your path of up to 5 nodes you should use
match p=()-[*..5]->() return p;

Be aware there was an issue in AgensGraph 1.0 with variable length path syntax

You should upgrade to the latest version of AgensGraph and AgensBrowser https://bitnine.net/agensgraph-downloads/ or github https://github.com/bitnine-oss/agensgraph.

Then match p=(a)-[*..5]-() where a.name = 'A' return p; will give you the expected result as shown

image

joefagan avatar Mar 08 '19 21:03 joefagan

Thanks, the syntax brings me a step further, but now facing issue #429 instead. Seems I have to wait for the next release

mdobri avatar Mar 11 '19 09:03 mdobri

@mdobri The problem has been solved at #463, you just need to install AgensGraph from

ghost avatar Mar 14 '19 18:03 ghost

@mdobri Please,Can you tell me configuration of agens graph browser? I am getting exception northwind_graph db not matching when i am starting my agensbrowser at linux shell.

rahul181tomar avatar Feb 09 '20 18:02 rahul181tomar