Would like to only see one relationship Neo4j Admin Web Console with a Cypher Query

时间:2015-09-14 16:18:11

标签: neo4j cypher

My neo4j data base is growing in complexity and I would like to perform queries so that i can see my data set visualized by only one type of relationship

I am having trouble refining the output in the neo4j console so that I only see nodes bound by one relationship instead of "(completed with 3 additional relationships)".

I have tried this query amongst others without luck:

MATCH (a)-[rel:ALL_RESOURCES]-()
WHERE rel = 'ALL_RESOURCES'
RETURN a

I would be very grateful for any help someone can provide.

1 个答案:

答案 0 :(得分:2)

不需要您的WHERE条款;通过在MATCH子句中指定关系类型,您已将查询约束为ALL_RESOURCES关系类型。这就是你应该需要的:

MATCH p = ()-[:ALL_RESOURCES]-()
RETURN p LIMIT 50;

然后,您想要移动"自动完成" Neo4j浏览器中的滑块为OFF。

enter image description here