lib/graphql_rails/attribute.rb in graphql_rails-0.3.3 vs lib/graphql_rails/attribute.rb in graphql_rails-0.4.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
require 'graphql'
-require 'graphql_rails/attribute/attribute_type_parser'
+require 'graphql_rails/type_parser'
module GraphqlRails
# contains info about single graphql attribute
class Attribute
attr_reader :name, :graphql_field_type, :property, :type_name, :description
@@ -46,10 +46,10 @@
GraphQL::STRING_TYPE
end
end
def parse_type(type)
- type = AttributeTypeParser.new(type).call
+ type = TypeParser.new(type).call
original_name['!'] ? type.to_non_null_type : type
end
end
end