class GraphQL::SchemaComparator::Changes::ObjectTypeInterfaceAdded
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 558 def initialize(interface, object_type) @criticality = Changes::Criticality.dangerous( reason: "Adding an interface to an object type may break existing clients " \ "that were not programming defensively against a new possible type." ) @interface = interface @object_type = object_type end
Public Instance Methods
message()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 567 def message "`#{object_type.graphql_definition}` object implements `#{interface.graphql_name}` interface" end
path()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 571 def path object_type.graphql_definition.to_s end