Skip to content

Commit

Permalink
Fix directives on fields with custom scalars
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoylife committed Feb 9, 2019
1 parent 1b8b1ea commit 0b0e4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/input.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
if err != nil {
return it, err
}
if data, ok := tmp.({{ $field.TypeReference.GO }}) ; ok {
if data, ok := tmp.({{ $field.TypeReference.GO | ref }}) ; ok {
it.{{$field.GoFieldName}} = data
} else {
return it, fmt.Errorf(`unexpected type %T from directive, should be {{ $field.TypeReference.GO }}`, tmp)
Expand Down

0 comments on commit 0b0e4a9

Please sign in to comment.