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

User defined custom types #10

Merged
merged 8 commits into from
Feb 16, 2018
Merged

User defined custom types #10

merged 8 commits into from
Feb 16, 2018

Conversation

vektah
Copy link
Collaborator

@vektah vektah commented Feb 16, 2018

Fixes #1

Ended up being way bigger than I expected.

Allows the user to:

  • define custom types using the standard go style Marshaler / Unmarshaler interfaces.
  • define custom marshalers on builtin types, see the example for details.
  • redefine any of the builtin scalar types

It also removes the runtime dependency on mapstructure by building custom unmarshalers for all input arguments, resulting in faster execution and more type safety.

@vektah vektah merged commit d0244d2 into master Feb 16, 2018
@vektah vektah deleted the newtypes branch February 16, 2018 10:34
cgxxv referenced this pull request in cgxxv/gqlgen Mar 25, 2022
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