Skip to content

Don't resolve circular possible circular relationships for queries returning count or exists projections. #2157

Closed
@martin-salinger

Description

@martin-salinger

Hi,

with version 6.0.4 and 6.0.5 a derived count query like
long countByLastname(String lastname);
throws an AopInvocationException:
org.springframework.aop.AopInvocationException: Null return value from advice does not match primitive return type

The reason is an incorrectly generated cypher query:
MATCH ... WITH collect(id(n)) AS __sn__ RETURN __sn__

With version 6.0.3 (and before) the cypher query is generated correctly:
MATCH ... RETURN count(*)

BTW: Thanks a lot for the great work!

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions