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

Don't overwrite field arguments when none match #1725

Merged
merged 1 commit into from
Nov 22, 2021
Merged

Don't overwrite field arguments when none match #1725

merged 1 commit into from
Nov 22, 2021

Conversation

edigaryev
Copy link
Contributor

Problem: during GraphQL field binding, when there's matching Golang method, yet without any arguments besides ctx, a resolver with no arguments from the original GraphQL schema will be generated.

Solution: don't overwrite field's arguments until we're sure we've got a perfect match.

Resolves #1319.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 70.412% when pulling 3807ac1 on edigaryev:dont-loose-args into ae92c83 on 99designs:master.

@StevenACoffman StevenACoffman changed the title Don't loose field arguments when none match Don't lose field arguments when none match Nov 22, 2021
@StevenACoffman StevenACoffman changed the title Don't lose field arguments when none match Don't overwrite field arguments when none match Nov 22, 2021
@StevenACoffman StevenACoffman merged commit 4581fcc into 99designs:master Nov 22, 2021
@StevenACoffman
Copy link
Collaborator

Thanks!

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.

Method name collision on model results in buggy resolver
3 participants