-
Notifications
You must be signed in to change notification settings - Fork 35
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
Refactor ClientGenerator
class to use private fields
#280
Refactor ClientGenerator
class to use private fields
#280
Conversation
Rebase on |
42769ad
to
5f6d40d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the diff this change introduced, I am wondering how much extra work would it be to instead detect when one of args is query
and only then use _query
. Likewise do same for _variables
, _result
and _data
. 🤔
we would have to pass arguments or set flags to code-generating functions just to determine whether to add |
I can confirm that the fix solves the issue with variable shadowing/overwriting, the client works as expected. |
To don't hit people with pull requests that change 9k places when they update their codegen version. Lets see how much complexity this change would actually introduce. |
we solved it in a different way #281 |
ClientGenerator:
query
to_query
.variables
to_variables
.response
to_response
.data
to_data
.Fixes #277