From ca6d2bc72a0dfbd20ad6ca53eb0de4b328005782 Mon Sep 17 00:00:00 2001 From: Arjen de Vos Date: Fri, 25 Nov 2022 10:14:05 +0100 Subject: [PATCH] remove lowercasing of name --- sqlboiler_graphql_schema.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlboiler_graphql_schema.go b/sqlboiler_graphql_schema.go index dbf9215..83ee2d7 100644 --- a/sqlboiler_graphql_schema.go +++ b/sqlboiler_graphql_schema.go @@ -713,14 +713,14 @@ func toGraphQLName(fieldName string) string { } func toGraphQLType(boilerField *BoilerField) string { - lowerFieldName := strings.ToLower(boilerField.Name) + // lowerFieldName := strings.ToLower(boilerField.Name) lowerBoilerType := strings.ToLower(boilerField.Type) if boilerField.IsEnum { return boilerField.Enum.Name } - if strings.HasSuffix(lowerFieldName, "id") { + if strings.HasSuffix(boilerField.Name, "ID") { return "ID" } if strings.Contains(lowerBoilerType, "string") {