是否可以从 Cypher 模式理解返回
count()
?
以下查询不起作用:
[ (:Vacancy)<-[rpp:POTENTIAL_PROFILE]-(childD) | count(rpp) ] AS potentialJobablesCount
出现以下错误:
Aggregation column contains implicit grouping expressions. For example, in 'RETURN n.a, n.a + n.b + count(*)' the aggregation expression 'n.a + n.b + count(*)' includes the implicit grouping key 'n.b'. It may be possible to rewrite the query by extracting these grouping/aggregation expressions into a preceding WITH clause. Illegal expression(s): rpp
您可以使用新的 COUNT 子查询:
...
COUNT { (:Vacancy)<-[:POTENTIAL_PROFILE]-(childD) } AS potentialJobablesCount