-
Notifications
You must be signed in to change notification settings - Fork 347
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
feat: ability to specify @GraphQLName
on input types w/o suffix
#1960
Merged
dariuszkuc
merged 3 commits into
ExpediaGroup:master
from
dariuszkuc:graphql_input_name
Apr 17, 2024
Merged
feat: ability to specify @GraphQLName
on input types w/o suffix
#1960
dariuszkuc
merged 3 commits into
ExpediaGroup:master
from
dariuszkuc:graphql_input_name
Apr 17, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Currently input types are always suffixed with `Input` which is problematic as there are use cases where users might want to provide different custom name. This change adds check whether specified type is input only and if thats the case it does not attempt to add `Input` suffix. ```kotlin // old: MyClassInput // new: MyClass @GraphQLValidObjectLocations([GraphQLValidObjectLocations.Locations.INPUT_OBJECT]) class MyClass // can also be combined with renaming // old: MyRenamedClassInput // new: MyRenamedClass @GraphQLValidObjectLocations([GraphQLValidObjectLocations.Locations.INPUT_OBJECT]) @GraphQLName("MyRenamedClass") class MyClass ```
dariuszkuc
force-pushed
the
graphql_input_name
branch
from
April 17, 2024 03:21
1aa8462
to
ec11992
Compare
dariuszkuc
changed the title
BREAKING: ability to specify
fix: ability to specify Apr 17, 2024
@GraphQLName
on input types w/o suffix@GraphQLName
on input types w/o suffix
dariuszkuc
added
changes: patch
Changes require a patch version
changes: minor
Changes require a minor version
and removed
changes: major
Changes require a major version
changes: patch
Changes require a patch version
labels
Apr 17, 2024
dariuszkuc
changed the title
fix: ability to specify
feat: ability to specify Apr 17, 2024
@GraphQLName
on input types w/o suffix@GraphQLName
on input types w/o suffix
While technically it is possible that folks used valid location = input + custom name so it could be considered breaking change, this seems rather unlikely case (as they would need to explicitly specify |
I am having one question on this. |
clarify that `Input` suffix is only appended IF it already doesn't end with that suffix
samuelAndalon
approved these changes
Apr 17, 2024
samuelAndalon
pushed a commit
that referenced
this pull request
Apr 18, 2024
) ### 📝 Description Currently input types are always suffixed with `Input` which is problematic as there are use cases where users might want to provide different custom name. This change adds check whether specified type is input only and if thats the case it does not attempt to add `Input` suffix. ### 🔗 Related Issues Supersedes #1949
samuelAndalon
pushed a commit
that referenced
this pull request
Apr 18, 2024
) ### 📝 Description Currently input types are always suffixed with `Input` which is problematic as there are use cases where users might want to provide different custom name. This change adds check whether specified type is input only and if thats the case it does not attempt to add `Input` suffix. ### 🔗 Related Issues Supersedes #1949
samuelAndalon
added a commit
that referenced
this pull request
Apr 18, 2024
) (#1962) Co-authored-by: Dariusz Kuc <9501705+dariuszkuc@users.noreply.github.com>
samuelAndalon
added a commit
that referenced
this pull request
Aug 19, 2024
samuelAndalon
added a commit
that referenced
this pull request
Aug 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
Currently input types are always suffixed with
Input
which is problematic as there are use cases where users might want to provide different custom name. This change adds check whether specified type is input only and if thats the case it does not attempt to addInput
suffix.🔗 Related Issues
Supersedes #1949