-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Client-side codegen fails if there are multiple queries with same name #106
Comments
Hi @kobylynskyi, will this be part of version 1.7.3 or later? I do see this issue up to 1.7.2. Thank you! |
Hi @jyjyj |
Hi @kobylynskyi, I see the errors that I previously mentioned in #141. In particular, my schema looks like After renaming one of them, there were no errors. Thanks! |
That's an expected error. @jyjyj How do you suggest to name generated classes? |
@kobylynskyi, my bad for missing that. Thought I did rename them differently but I guess I only did so for the parameter type. Correct me if I'm wrong, but Java is not able to differentiate multiple functions with the same signature except of different parameter types? Either way, thank you for pointing it out! |
@jyjyj Well, Java allows overloading methods: with the same name and same parameter names (but parameters should have a different type). |
Hi @kobylynskyi, if method overloading is allowed for the same name and same parameter type, and if 2 resolvers were created with the same name, would they not just be generated in the same interface as 2 different methods? |
@jyjyj |
Issue Description
Code generation fails for the following schema:
config:
Output:
The text was updated successfully, but these errors were encountered: