Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试执行检查并返回满足 Neo4J 中某个谓词的值
在我假设的数据库中,我有一个 :Trial 节点标签,其中包含(在属性“内容”下)一个字符串数组。
需要注意的是:
我需要编写一个查询,返回所有 :Entry 节点的 Z 值,其:
和
请帮忙
你需要选择合适的模式,然后在它的基础上再做一个,看看:
MATCH (E:Entry)<--(:Model)<--(:Replies)-->(T1:Trial) MATCH (E)<--(:Model)<--(:Replies)-->(T2:Trial) WHERE T1 <> T2 AND E.X IN T1.content AND E.Y IN T2.content RETURN DISTINCT E.Z AS Z