class GraphQL::SchemaComparator::Changes::EnumValueAdded
Attributes
criticality[R]
enum_type[R]
enum_value[R]
Public Class Methods
new(enum_type, enum_value)
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 516 def initialize(enum_type, enum_value) @enum_type = enum_type @enum_value = enum_value @criticality = Changes::Criticality.dangerous( reason: "Adding an enum value may break existing clients that were not " \ "programming defensively against an added case when querying an enum." ) end
Public Instance Methods
message()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 525 def message "Enum value `#{enum_value.graphql_name}` was added to enum `#{enum_type.graphql_definition}`" end
path()
click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 529 def path [enum_type.graphql_definition, enum_value.graphql_name].join(".") end