make client an interface

This commit is contained in:
Ben Kraft
2021-03-25 14:08:12 -07:00
parent a9054e484f
commit 937540d244
17 changed files with 61 additions and 21 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func {{.Name}}(
ctx {{$.Config.ContextType}},
{{end}}
{{- if not $.Config.ClientGetter -}}
client *graphql.Client,
client graphql.Client,
{{end}}
{{- range .Args -}}
{{.GoName}} {{.GoType}},