我在 neo4j 中创建了一个查询:
MATCH (x:Node)-[r*1..2]->(y:Node)
WITH x AS x, SIZE(COLLECT(DISTINCT y)) AS y
WITH CASE
WHEN y=10 THEN x.target
END AS l
return l AS target
但返回类似:
target
____
null
null
"test1"
null
null
"tes56"
...
我想要的是:
target
____
"test1"
"tes56"
...
条目中没有空值。我怎样才能做到这一点?