class GraphQL::SchemaComparator::Changes::TypeKindChanged
Attributes
criticality[R]
new_type[R]
old_type[R]
Public Class Methods
new(old_type, new_type)
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 82 def initialize(old_type, new_type) @old_type = old_type @new_type = new_type @criticality = Changes::Criticality.breaking( reason: "Changing the kind of a type is a breaking change because it can cause existing queries to error. For example, turning an object type to a scalar type would break queries that define a selection set for this type." ) end
Public Instance Methods
message()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 90 def message "`#{old_type.graphql_definition}` kind changed from `#{old_type.kind}` to `#{new_type.kind}`" end
path()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 94 def path old_type.graphql_definition.to_s end