-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add option to configure customTypesMapping
beyond scalars to configure custom mappings for types
#1307
Comments
customTypesMapping
beyond scalarscustomTypesMapping
beyond scalars to configure custom mappings for types
Please provide more detailed example including the configuration and expected generated files. |
@kobylynskyi I updated the examples Interestingly enough, I just realized that for this basic example, the generated code is referring to If this is the intended behavior maybe #1297 will help? I pushed https://github.com/yeikel/graphql-java-codegen-example-custom/tree/main with a reproducer |
Is your feature request related to a problem? Please describe.
I would like to provide custom mappings for other types that are not scalar where code generation would be skipped but my class would still be referenced
Example :
Schema :
Describe the solution you'd like
Build configuration :
Generated Class :
It should generate the
Book
class and useorg.example.Author
as is when it gets to the generation of the Author classProvided
Author
class created externally :Describe alternatives you've considered
I considered #1297 although I believe that this will only exclude the generation but it won't import my custom class
The text was updated successfully, but these errors were encountered: