neo4j浏览器导出文件包括关系 [英] neo4j browser export file including relationships
问题描述
如何导出包括关系?我发现执行默认查询
How to export including relationships? I've found that executing the default query
MATCH (n) RETURN n
返回我需要的图形化包括节点之间的关系(AUTO-COMPLETE打开)。我看到我的节点和他们的关系。
Does return what I need graphically including the relationships between nodes (AUTO-COMPLETE switched on). I see my nodes and their relationship.
但是当我保存CVS或JSON时,它不包括关系。任何想法我怎么能这样做?
But when I save it either CVS or JSON it does not includes the relationships. Any idea how can I do it?
推荐答案
这是如何获取所有节点及其离开关系。
This is how you'd get all the nodes and their outgoing relationships, if any.
MATCH (n)
OPTIONAL MATCH (n)-[r]->()
RETURN n, r;
每个关系都会告诉你它的开始和结束节点,所以你可以得到结束节点的ID
Each relationship will tell you what its start and end nodes are, so you can get the end node's ID from it.
如果你想得到返回的结束节点:
If you want to get the end node returned as well:
MATCH (n)
OPTIONAL MATCH (n)-[r]->(m)
RETURN n, r, m;
这篇关于neo4j浏览器导出文件包括关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!