From 0495aff8038c715e2ee2f3989bb9faa3eff99fbf Mon Sep 17 00:00:00 2001 From: Charles Hughes Date: Tue, 31 Oct 2023 16:43:45 -0700 Subject: [PATCH] Don't strip Type from the end of type names --- lib/generators/graphql/type_generator.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/generators/graphql/type_generator.rb b/lib/generators/graphql/type_generator.rb index c599d664d0..5c55eea342 100644 --- a/lib/generators/graphql/type_generator.rb +++ b/lib/generators/graphql/type_generator.rb @@ -46,8 +46,6 @@ def self.normalize_type_expression(type_expression, mode:, null: true) elsif type_expression.start_with?("[") && type_expression.end_with?("]") name, is_null = normalize_type_expression(type_expression[1..-2], mode: mode, null: null) ["[#{name}]", is_null] - elsif type_expression.end_with?("Type") - normalize_type_expression(type_expression[0..-5], mode: mode, null: null) elsif type_expression.start_with?("Types::") normalize_type_expression(type_expression[7..-1], mode: mode, null: null) elsif type_expression.start_with?("types.")