Skip to content

Commit

Permalink
add test directives generate
Browse files Browse the repository at this point in the history
  • Loading branch information
asamusev committed Dec 2, 2018
1 parent 047f2eb commit 6b00509
Show file tree
Hide file tree
Showing 9 changed files with 629 additions and 28 deletions.
2 changes: 1 addition & 1 deletion codegen/templates/data.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codegen/templates/input.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{{- end }}

func (e *executableSchema) {{ .GQLType }}Middleware(ctx context.Context, obj *{{.FullName}}) (*{{.FullName}}, error) {
{{ if .Directives }}
{{ if .Directives }}
cObj, err := graphql.ChainFieldMiddleware(
[]graphql.FieldMiddleware{
{{- range $directive := .Directives }}
Expand Down
Loading

0 comments on commit 6b00509

Please sign in to comment.