当我使用“WHERE”子句获取特定节点时, 我知道需要“收集”功能。(ex.1工作。)
但我无法理解为什么需要“收集”功能。 (ex.2不起作用。)
实施例1,)
MATCH (people:PEOPLE) WHERE toInteger(people.age) > 18
MATCH (movie:Movie)<-[r]-(people)
WITH movie, collect(people) as pe ,count(r) AS rel_num
WHERE rel_num > 2
RETURN movie,pe
例2)
MATCH (people:PEOPLE) WHERE toInteger(people.age) > 18
MATCH (movie:Movie)<-[r]-(people)
WITH movie, people ,count(r) AS rel_num
WHERE rel_num > 2
RETURN movie,people
OS:Windows10 版本:3.2.10 版本:社区