class GraphQL::SchemaComparator::Changes::TypeRemoved

Mostly breaking changes

Attributes

criticality[R]
removed_type[R]

Public Class Methods

new(removed_type) click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 46
def initialize(removed_type)
  @removed_type = removed_type
  @criticality = Changes::Criticality.breaking(
    reason: "Removing a type is a breaking change. It is preferable to deprecate and remove all references to this type first."
  )
end

Public Instance Methods

message() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 53
def message
  "Type `#{removed_type.graphql_definition}` was removed"
end
path() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 57
def path
  removed_type.graphql_definition.to_s
end