diff --git a/executor.go b/executor.go index 6e426161..cd0b6653 100644 --- a/executor.go +++ b/executor.go @@ -851,7 +851,7 @@ func DefaultResolveFn(p ResolveParams) (interface{}, error) { valueField := sourceVal.Field(i) typeField := sourceVal.Type().Field(i) // try matching the field name first - if typeField.Name == p.Info.FieldName { + if strings.EqualFold(typeField.Name, p.Info.FieldName) { return valueField.Interface(), nil } tag := typeField.Tag