big refactor to put the codegen onto methods of an object
This commit is contained in:
@@ -8,9 +8,9 @@ import (
|
||||
"github.com/Khan/genql/graphql"
|
||||
)
|
||||
|
||||
{{range .Operations}}
|
||||
{{.ResponseType}}
|
||||
{{.Types}}
|
||||
|
||||
{{range .Operations}}
|
||||
{{.Doc}}
|
||||
func {{.Name}}(ctx context.Context, client *graphql.Client{{range .Args}}, {{.GoName}} {{.GoType}}{{end}}) (*{{.ResponseName}}, error) {
|
||||
{{- if .Args -}}
|
||||
|
||||
Reference in New Issue
Block a user