Neo4J从具有多个关系的多个节点获取数据

时间:2017-04-07 06:49:12

标签: neo4j cypher

您好我的Neo4J查询获取 CheckIn 审核像素等由用户提供给Business.Which我完美了。但是我还要获取用户提供的脉冲,但没有提供给业务。所以我的跟踪查询不是获取脉冲。

start n=node({otherUserId}) 
with n match (n)-[r1]-(p)-[r2]-(b:business) 
where r1.onPulse=true and r2.onPulse= true and 
('check_in' IN labels(p) OR 'tip' IN labels(p) OR 'review' IN labels(p) OR 'rate' IN labels(p)) 
with p,r1,r2,n,b 
optional match(p)-[r3:has_pix]-(pix:pix) 
OPTIONAL MATCH (p)-[tg]-(tags) 
where type(tg) in ['has_biz_tag', 'has_user_tag', 'has_hash_tag'] 
return n,r1,p,r2,r3

enter image description here

在我的关系节点之上。我想要Neo4J查询。

0 个答案:

没有答案