We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It'd be nice to have an option to return a pointer instead of a value in unmarshalInput: https://github.com/99designs/gqlgen/blob/master/codegen/input.gotpl#L3
unmarshalInput
I'd expect something like: codegen/input.gotpl
func (ec *executionContext) unmarshalInput{{ .Name }}(ctx context.Context, obj interface{}) ({{ if returnPointerInUnmarshalInput }}*{{ end }}{{.Type | ref}}, error) { ... return {{ if returnPointerInUnmarshalInput }}&{{ end }}it, nil
And related changes in codegen/type.gotpl. https://github.com/99designs/gqlgen/blob/master/codegen/type.gotpl#L78
go run github.com/99designs/gqlgen version
go version
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
It'd be nice to have an option to return a pointer instead of a value in
unmarshalInput
:https://github.com/99designs/gqlgen/blob/master/codegen/input.gotpl#L3
What did you expect?
I'd expect something like:
codegen/input.gotpl
And related changes in codegen/type.gotpl.
https://github.com/99designs/gqlgen/blob/master/codegen/type.gotpl#L78
Minimal graphql.schema and models to reproduce
versions
go run github.com/99designs/gqlgen version
? v0.17.16go version
? go1.18.6The text was updated successfully, but these errors were encountered: