class GraphQL::SchemaComparator::Changes::FieldArgumentRemoved
Attributes
argument[R]
criticality[R]
field[R]
object_type[R]
Public Class Methods
new(object_type, field, argument)
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 162 def initialize(object_type, field, argument) @object_type = object_type @field = field @argument = argument @criticality = Changes::Criticality.breaking( reason: "Removing a field argument is a breaking change because it will cause existing queries that use this argument to error." ) end
Public Instance Methods
message()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 171 def message "Argument `#{argument.graphql_name}: #{argument.type.graphql_definition}` was removed from field `#{object_type.graphql_definition}.#{field.graphql_name}`" end
path()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 175 def path [object_type.graphql_definition, field.graphql_name, argument.graphql_name].join('.') end