-
-
Notifications
You must be signed in to change notification settings - Fork 110
Parameterized field getters in type interface are missing parameters #859
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
@UselessPickles thanks for a detailed explanation of the issue. |
@kobylynskyi Sorry for not responding earlier. I somehow missed the notification from Dec 2. I looked at the changes you committed, and based on the example generated interfaces for your tests, it looks like exactly what I was looking for. Thanks! |
This feature will be released as part of 5.4.0 very soon. Stay tuned. |
Issue Description
I would like to generate a type as an interface that has parameterized fields, without using separate field resolvers for the parameterized fields. Since the type is being generated as an interface rather than a concrete class, I would expect the getter methods for the parameterized fields to be properly parameterized. However, there are no such parameters on the getters for the parameterized fields, and the generated interface is invalid/unusable.
Steps to Reproduce
Excerpt of relevant graphql schema:
Expected Result
Expected generated interface:
Actual Result
Generated interface:
This interface is unusable/broken. In addition to being unable to implement the method in terms of its parameters, this is not even valid for graphql kickstart:
Your Environment and Setup
Excerpt of
graphqlCodegen
from build.gradleThe text was updated successfully, but these errors were encountered: