从 Cypher 模式理解返回 count()

问题描述 投票:0回答:1

是否可以从 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
neo4j cypher
1个回答
0
投票

您可以使用新的 COUNT 子查询

...
COUNT { (:Vacancy)<-[:POTENTIAL_PROFILE]-(childD) } AS potentialJobablesCount
© www.soinside.com 2019 - 2024. All rights reserved.