Skip to content
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

consider goField directive for getters generation #2440

Closed
wants to merge 1 commit into from

Conversation

darkLord19
Copy link
Contributor

@darkLord19 darkLord19 commented Nov 28, 2022

Fixes #2439

When you have an interface and override generated models fields name with goField directive. This PR makes it so getters generated by gqlgen will access field values using the field that was specified in the goField directive.

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 75.625% when pulling ac6ae2f on darkLord19:master into f28ffcc on 99designs:master.

@StevenACoffman
Copy link
Collaborator

Closed in favor of reformatted #2447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interface getters are not using goField directive
4 participants