Skip to content

Commit

Permalink
from probably makes more sense
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Jun 15, 2018
1 parent 620f7fb commit 59ee1b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codegen/templates/data.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion codegen/templates/generated.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type {{$object.GQLType}}Resolver interface {
{{- end }}
{{- end }}

func WithShort(r ShortResolver) Resolvers { return shortMapper{r: r} }
func FromShort(r ShortResolver) Resolvers { return shortMapper{r: r} }

type shortMapper struct {
r ShortResolver
Expand Down

0 comments on commit 59ee1b5

Please sign in to comment.