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

Use graphql.String for types wrapping a basic string #634

Merged
merged 1 commit into from
Mar 18, 2019

Conversation

vektah
Copy link
Collaborator

@vektah vektah commented Mar 18, 2019

Adds a special case that allows type Foo string to fallback to calling whatever marshaler is defined for String.

Not the cleanest approach, but it closes out the regression until we have a better solution.

Fixes #595

I have:

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

@vektah vektah requested a review from mathewbyrne March 18, 2019 03:06
@vektah vektah merged commit 3e39b57 into master Mar 18, 2019
@vektah vektah deleted the fallback-to-string branch March 18, 2019 04:45
cgxxv pushed a commit to cgxxv/gqlgen that referenced this pull request Mar 25, 2022
Use graphql.String for types wrapping a basic string
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.

Enums can't be imported
2 participants