class GraphQL::SchemaComparator::Changes::FieldAdded

Attributes

criticality[R]
field[R]
object_type[R]

Public Class Methods

new(object_type, field) click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 845
def initialize(object_type, field)
  @criticality = Changes::Criticality.non_breaking
  @object_type = object_type
  @field = field
end

Public Instance Methods

message() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 851
def message
  "Field `#{field.graphql_name}` was added to object type `#{object_type.graphql_definition}`"
end
path() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 855
def path
  [object_type.graphql_definition, field.graphql_name].join(".")
end