class GraphQL::SchemaComparator::Changes::InputFieldRemoved

Attributes

criticality[R]
field[R]
input_object_type[R]

Public Class Methods

new(input_object_type, field) click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 142
def initialize(input_object_type, field)
  @input_object_type = input_object_type
  @field = field
  @criticality = Changes::Criticality.breaking(
    reason: "Removing an input field will cause existing queries that use this input field to error."
  )
end

Public Instance Methods

message() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 150
def message
  "Input field `#{field.graphql_name}` was removed from input object type `#{input_object_type.graphql_definition}`"
end
path() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 154
def path
  [input_object_type.graphql_definition, field.graphql_name].join('.')
end