-
Notifications
You must be signed in to change notification settings - Fork 49
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
Resolve field alias in Cypher only if no DataFetchingInterceptor is used #270
Conversation
@Krejtcha can you please check this PR if it solves your issue correctly? |
@Andy2003 thank you for the fix, but unfortunately it fixes the problem only partially. Now aliases on fields work, but the main purpose of why aliases are used does not work. I did not have time to investigate the issues in detail so I do not know the cause. I can only provide you with this info:
Hopefully this feedback will be helpful for you and you will be able to fix this issue. |
@Krejtcha thank you for your feedback! I now had to implement a completely different approach. Please check again if the PR fixes your issue correctly now. |
@Andy2003 unfortunately is still does not work: If there is a
it is OK, but when I query just this:
I get It behaves the same for If I have a rich relationship and I identify the
it works, but when query just this:
If I query this:
both
again the error with |
@Krejtcha I cant reproduce your described behavior, can you do me a favor and adjust https://github.com/neo4j-graphql/neo4j-graphql-java/pull/270/files#diff-39e36965c8869d32dea7d00ef257118ec05f65fac67eb0a4af6fd9e926de64b0 to represent your descibed behavior. Could it be that you are stumbling over another issue: #87? |
@Andy2003 Sorry it was my mistake - your solution works. The problem is that I can not use the
So I actually copied the code from
now it works. Is there a way of registering custom DataFetchers and still use the Thank you. |
I moved the logic to Lines 52 to 56 in 689ded1
We could add some customizer callbacks (a.k.a. extension points) as a new feature. Feel free to create a feature request. PR's are of course always welcome as well! |
resolves #267