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 support for 'input_name_suffix_ in '#[graphql(...)]' (fixes #1117) #1119
base: master
Are you sure you want to change the base?
Add support for 'input_name_suffix_ in '#[graphql(...)]' (fixes #1117) #1119
Conversation
Thanks for the PR, but I don't think the |
I strongly disagree, it enables several things:
I think this simplifies things a lot and I'd even argue that having this argument is more important than |
@sunli829 are you sure? I can see why someone may want this, and the added code is quite simple. Maybe reconsider? |
7eabbe3
to
912feb3
Compare
I like the change mainly because of this. When both |
Not necessarily, for instance you could want to give a suffix to all of your types even with a custom name. |
0f0f948
to
a14fd0f
Compare
@sunli829 hi, I've rebased the PR to make it work with the latest 5.x versions. May you please reconsider the purpose of this add? I think it would be really useful for some people (like me) and it doesn't hurt to add it in the end for people that don't want to use it. In my current project I constantly use my fork to have this feature which is essential. |
2bf0fb8
to
1ae8831
Compare
404c7b2
to
0142d6a
Compare
Support for
SimpleObject
,InputObject
,Union
andOneofobject
.Also improves refactoring:
So when
Test
is renamed, the input name will be changed automatically.