-
Notifications
You must be signed in to change notification settings - Fork 70
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
Generate Getters on Interfaces #46
Comments
The actual model generation which includes the interface/implementation generation is performed by https://github.com/99designs/gqlgen. Would be good to open an issue there first. Also, you should re-write your example above because it is hard to understand, here a fixed one:
The getters will need to have the prefix |
Thanks for pointing out that this is done by 99designs/gqlgen. I'll open an issue there. Also thanks for pointing out that we'd need a prefix like "Get". You're absolutely right. |
for reference: 99designs/gqlgen#1469 |
When you have this schema:
it would be great if you could generate getter functions for all fields on the interface.
This would allow to read all common fields directly from the interface instead of doing a typeswitch.
The text was updated successfully, but these errors were encountered: