解决方案一

I am trying to perform a query to retrieve all paths between two nodes a and b in which all the paths there is a relationship property fulfilled.

I have tried in many ways but I am not able to success.

MATCH p=(o{value:"a"})-[r*]-(x{value:"b"}) where has(r.property) and r.property="foo" return p

relationship part i have changed to [r*..] and many other options but not working

The function shortestpath does not help me because I want not only the shortest but all the possibilities.

Can someone help me or tell me which is the error in the query?

Thank you in advance.

解决方案二

What you're looking for is the ALL predicate on the relationships collection of the path :

MATCH p=(o{value:"a"})-[r*]-(x{value:"b"})
WHERE ALL(x IN rels(p) WHERE x.property = "foo")
RETURN p

And please use labels !

原文地址:https://stackoverflow.com/questions/39287874/neo4j-cypher-all-paths-between-two-nodes-with-a-relationship-property-filter?rq=1

最新文章

  1. 07-阻塞赋值与非阻塞赋值原理分析——小梅哥FPGA设计思想与验证方法视频教程配套文档
  2. iOS 阶段学习第11天笔记(OC基础知识)
  3. Scala class的构造方法与继承
  4. this和super用法的总结
  5. openfire+asmack搭建的安卓即时通讯(四) 15.4.10
  6. js克隆
  7. Android Launcher 详解
  8. Spark作业调度
  9. Crystal Report在.net中的两种显示方式
  10. android开发系列之代码整洁之道
  11. ffmpeg 的tutorial
  12. 强制卸载VS2013
  13. js基础回顾-数据类型和typeof怎么用
  14. 201521123114 《Java程序设计》第2周学习总结
  15. 2554 ACM 杭电 数学
  16. ns2.34 移植MFLOOD协议时出现的问题
  17. Fluent动网格【12】:扩散光顺
  18. HBase 管理,性能调优
  19. C#基础笔记(第十天)
  20. vs2013和vs2010的配置

热门文章

  1. win7安装Elasticsearch和Elasticsearch-Head插件
  2. C++入门经典-例8.3-子类显示调用父类构造函数
  3. Mac 10.15 关闭SIP
  4. java使用解压zip文件,文件名乱码解决方案
  5. zipkin-client:brave核心代码思路整理
  6. javascript之DOM四位的验证码简单实现
  7. NavMenu 导航菜单
  8. Helm chart仓库官方仓库不能使用解决方法
  9. IIS asp.net 中出现未能加载文件或程序集“System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统找不到指定的文件。
  10. python-Web-项目-svn和git