-
-
Notifications
You must be signed in to change notification settings - Fork 112
Description
Is your feature request related to a problem? Please describe.
I want to generate more than just XyzResolver interfaces.
Like XyzResolverImpl and XyzService interfaces.
Describe the solution you'd like
- A few more variables in the templates.
- The
classNamewithout the suffix. - The type of the operation (Mutation, Query, Subscription), so I can generate the
@SchemaMappingannotation.
- A way to generate these into their own files and directories.
Current workarounds
-
I can split the current
classNameby using?keep_before("Resolver"). That works but bloats the template, since that's done in numerous places.
But generating the@SchemaMappingis currently impossible I think, as I have no way of knowing the type. -
Currently I just have them in one file. That's not so bad and is not a priority, but it would be very nice to expand this even further in the future, so that eg. the service interfaces lie in their own package. A generic mechanism would be awesome so you could generate variable amounts of files into variable directories without having them hard coded as
modelandapi.