class GraphQL::SchemaComparator::Changes::FieldDeprecationChanged

Attributes

criticality[R]
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 825
def initialize(type, old_field, new_field)
  @criticality = Changes::Criticality.non_breaking
  @type = type
  @old_field = old_field
  @new_field = new_field
end

Public Instance Methods

message() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 832
def message
  "Deprecation reason on field `#{type.graphql_definition}.#{new_field.graphql_name}` has changed "\
    "from `#{old_field.deprecation_reason}` to `#{new_field.deprecation_reason}`"
end
path() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 837
def path
  [type.graphql_definition, old_field.graphql_name].join(".")
end