-
Notifications
You must be signed in to change notification settings - Fork 617
Don't resolve circular possible circular relationships for queries returning count or exists projections. #2157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can confirm this bug. |
This will be fixed in the next patch. We are sorry for causing you issues. The root cause is to be related in the much improved querying of cycling mapping, which get's triggered by your mapping. To mitigate the issue, you can use
or
( |
Thank you for the custom query to mitigate the issue! It´s good to hear that the querying of cycling mapping has been much improved 👍 |
…queries returning count or exists projections. This fixes #2157 Original pull request: #2158. Co-authored-by: Gerrit Meier <[email protected]>
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!
The text was updated successfully, but these errors were encountered: