-
Notifications
You must be signed in to change notification settings - Fork 349
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
Allow to disable Input suffix #2039
Allow to disable Input suffix #2039
Conversation
...hema-generator/src/main/kotlin/com/expediagroup/graphql/generator/annotations/GraphQLName.kt
Outdated
Show resolved
Hide resolved
...c/main/kotlin/com/expediagroup/graphql/generator/internal/extensions/annotationExtensions.kt
Outdated
Show resolved
Hide resolved
LGTM, i would just rename the field to |
@samuelAndalon, just a thought - maybe it would make more sense to introduce a separate Maybe having a property |
that works as well |
Updated. Using dedicated annotation instead of field on name annotation. |
my 2 cents: if you are going with separate annotations I'd probably just call it *also you probably should update PR description |
I was just thinking -> if using |
I've added
@dariuszkuc if we chose to go with Alternatively, we could introduce |
@pdambrauskas PR LGTM, could you please update the 8.x.x docs ? -- as it will be released there first, then we would need to cherry pick it to 7.x.x |
3f160e1
to
b1787ce
Compare
📝 Description
We are migrating our schema from a legacy Graphql service to a new on, which is based on graphql-kotlin.
We have some input types that do not have
Input
suffix and want to migrate those types without breaking the schema.For this to work in a backwards compatible way , I'm suggesting adding new annotation -
@GraphQLSkipInputSuffix
,when it is added on input type - schema generator does not add the suffix
@samuelAndalon