diff --git a/codegen/generated!.gotpl b/codegen/generated!.gotpl index dce8ce977c..a1a1a76044 100644 --- a/codegen/generated!.gotpl +++ b/codegen/generated!.gotpl @@ -86,7 +86,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in {{ if not $object.IsReserved }} {{ range $field := $object.UniqueFields }} {{ if not $field.IsReserved }} - case "{{$object.Name}}.{{$field.GoFieldName}}": + case "{{$object.Name}}.{{$field.Name}}": if e.complexity.{{$object.Name|go}}.{{$field.GoFieldName}} == nil { break }