Skip to content

Commit

Permalink
Small template fix to save space in the generated file (#2841)
Browse files Browse the repository at this point in the history
* Small template fix to save space in the generated file

* Re-generate

Signed-off-by: Steve Coffman <steve@khanacademy.org>

---------

Signed-off-by: Steve Coffman <steve@khanacademy.org>
Co-authored-by: Patrik Lindahl <patrik.lindahl@tolotek.com>
Co-authored-by: Steve Coffman <steve@khanacademy.org>
  • Loading branch information
3 people authored Nov 11, 2023
1 parent c0ca509 commit eb5cea7
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 305 deletions.
4 changes: 0 additions & 4 deletions _examples/config/generated.go

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

4 changes: 0 additions & 4 deletions _examples/fileupload/generated.go

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

6 changes: 0 additions & 6 deletions _examples/scalars/generated.go

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

6 changes: 0 additions & 6 deletions _examples/starwars/generated/exec.go

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

4 changes: 0 additions & 4 deletions _examples/todo/generated.go

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

2 changes: 0 additions & 2 deletions _examples/type-system-extension/generated.go

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

3 changes: 0 additions & 3 deletions codegen/input.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,10 @@
switch k {
{{- range $field := .Fields }}
case {{$field.Name|quote}}:
var err error

{{- $lhs := (printf "it.%s" $field.GoFieldName) }}
{{- if $input.IsMap }}
{{- $lhs = (printf "it[%q]" $field.Name) }}
{{- end }}

ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField({{$field.Name|quote}}))
{{- if $field.ImplDirectives }}
directive0 := func(ctx context.Context) (interface{}, error) { return ec.{{ $field.TypeReference.UnmarshalFunc }}(ctx, v) }
Expand Down
4 changes: 0 additions & 4 deletions codegen/testserver/followschema/defaults.generated.go

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

12 changes: 0 additions & 12 deletions codegen/testserver/followschema/directive.generated.go

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

2 changes: 0 additions & 2 deletions codegen/testserver/followschema/enum.generated.go

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

4 changes: 0 additions & 4 deletions codegen/testserver/followschema/fields_order.generated.go

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

12 changes: 0 additions & 12 deletions codegen/testserver/followschema/maps.generated.go

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

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

10 changes: 0 additions & 10 deletions codegen/testserver/followschema/ptr_to_ptr_input.generated.go

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

Loading

0 comments on commit eb5cea7

Please sign in to comment.