class GraphQL::SchemaComparator::Changes::ObjectTypeInterfaceRemoved
Attributes
criticality[R]
interface[R]
object_type[R]
Public Class Methods
new(interface, object_type)
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 265 def initialize(interface, object_type) @interface = interface @object_type = object_type @criticality = Changes::Criticality.breaking( reason: "Removing an interface from an object type can cause existing queries that use this in a fragment spread to error." ) end
Public Instance Methods
message()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 273 def message "`#{object_type.graphql_definition}` object type no longer implements `#{interface.graphql_name}` interface" end
path()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 277 def path object_type.graphql_definition.to_s end