dgs-codegen
dgs-codegen copied to clipboard
Add custom prefix or suffix to generated types
Add a new configuration option typePrefix and typeSuffix to the CodeGenConfig class and update the code generation methods to append the typePrefix and typeSuffix to the generated type names.
fix https://github.com/Netflix/dgs-codegen/issues/389 fix https://github.com/Netflix/dgs-codegen/issues/323
@amondnet looks really great and I would really look forward to have this merged or published ASAP - or, if things can't go rapidly enough here, re-publishing your fork directly via GPP under different co-ords so that everyone interested in it could temporarily use it easily until it's merged upstream
We too are looking forward to this
+1
+1
+1
Hey, I'd really appreciate those changes being merged. In my case we need to expose REST API along Graphql API. Suffixing Graphql types would greatly improve developer experience. Currently we use kotlin import aliases whenever needed but with another API in codebase it will quickly get out of control 😅
@amondnet Great work! I've rebased your changes onto master. Cleaned it up from * imports and adjusted commit message.
@mbossenbroek @srinivasankavitha Could you please take a look and consider those changes?
Thank you!