使用Cypher获取结果中包含的基节点

时间:2013-09-17 12:57:01

标签: neo4j cypher neo4jclient

我正在尝试获取特定用户的文件夹结构的权限。我首先得到一个文件夹列表然后循环然后获取用户在权限列表路径中的每个位置的权限。例如

start n = node(folderID) match n<-[r:SECURITY]-x, x<-[v:IS_MEMBER_OF_GROUP*]-b where b.Name = "user1" return n,r.Comment;

start n = node(3911) match n<-[r:SECURITY]-x, b-[v:IS_MEMBER_OF_GROUP*]-x where b.Name = "user1" return x, r.Comment;

问题是它在结果中不包含user1关系。 有没有办法在查询中包含这个? (不是单独的专栏)。树结构如下:http://docs.neo4j.org/chunked/stable/examples-acl-structures-in-graphs.html

0 个答案:

没有答案