class GraphQL::SchemaComparator::Changes::FieldTypeChanged
Attributes
new_field[R]
old_field[R]
type[R]
Public Class Methods
new(type, old_field, new_field)
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 287 def initialize(type, old_field, new_field) @type = type @old_field = old_field @new_field = new_field end
Public Instance Methods
criticality()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 297 def criticality if safe_change_for_field?(old_field.type, new_field.type) Changes::Criticality.non_breaking else Changes::Criticality.breaking # TODO - Add reason end end
message()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 293 def message "Field `#{type.graphql_definition}.#{old_field.graphql_name}` changed type from `#{old_field.type.graphql_definition}` to `#{new_field.type.graphql_definition}`" end
path()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 305 def path [type.graphql_definition, old_field.graphql_name].join('.') end