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

Automatically add type conversions around wrapped types #13

Merged
merged 1 commit into from
Feb 19, 2018
Merged

Conversation

vektah
Copy link
Collaborator

@vektah vektah commented Feb 19, 2018

Given a primitive type in the schema

type User {
    isBanned: Boolean!
}

being bound to a wrapped primitive in go

type MyBool bool

type User struct {
    IsBanned MyBool
}

generate the appropriate type conversion automatically in the bindings.

Fixes #12

@vektah vektah merged commit 9d896f4 into master Feb 19, 2018
@vektah vektah deleted the autocast branch February 19, 2018 10:15
cgxxv pushed a commit to cgxxv/gqlgen that referenced this pull request Mar 25, 2022
Automatically add type conversions around wrapped types
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.

1 participant