【发布时间】:2016-06-08 06:30:58
【问题描述】:
然后以下查询获取特定用户的所有组 展开每个结果(每个组),并且仅当与该组的计数关系为 1 时才应删除所有传入关系。
example: group1<-user1 (will delete the incoming relationship to the group)
group1-<user1
group1-<user2 (will remain all incoming relationships to the group)
可以帮忙完成吗?
MATCH (me:userId{{1})-[rel:relation_group]-(allGroups:GROUP)
unwind userGroups as group
//how to use CASE or WHERE in order to check if this group
has only 1 relationship just remove it
谢谢。
【问题讨论】:
标签: neo4j cypher neo4jclient