-
Notifications
You must be signed in to change notification settings - Fork 661
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
Support for @client directive and local only fields #2611
Comments
Hi 👋 , this is not possible. If you want to attach some data to a generated model, you can write a wrapper class that will add data. |
@RageshAntony can you detail why wrapping the generated model to add your data is not a good solution in your case? I'm trying to see if |
Yeah I tried Ok I wrap inside an another class like you suggested . No problem And one suggestion These local fields (@ client) is an awesome feature . Please try to support them in Apollo-Android code generation Thank You |
@RageshAntony may i know have you managed to successfully generate models with @client directive used in graphql files? can you share your approach? thanks. |
Is your feature request related to a problem? Please describe.
Need to add a custom variable in generated class that not in Query
Describe the solution you'd like
I need to add some custom variables in generated class that not present in Query file. That is , i need a boolean isExpanded variable in generated class for a query , that not included in query field.(for programming only usage)
Is that possible ?
The text was updated successfully, but these errors were encountered: