class GraphQL::StaticValidation::FieldsAreDefinedOnTypeError
Attributes
field_name[R]
type_name[R]
Public Class Methods
new(message, path: nil, nodes: [], type:, field:)
click to toggle source
Calls superclass method
GraphQL::StaticValidation::Error::new
# File lib/graphql/static_validation/rules/fields_are_defined_on_type_error.rb, line 8 def initialize(message, path: nil, nodes: [], type:, field:) super(message, path: path, nodes: nodes) @type_name = type @field_name = field end
Public Instance Methods
code()
click to toggle source
# File lib/graphql/static_validation/rules/fields_are_defined_on_type_error.rb, line 27 def code "undefinedField" end
to_h()
click to toggle source
A hash representation of this Message
Calls superclass method
GraphQL::StaticValidation::Error#to_h
# File lib/graphql/static_validation/rules/fields_are_defined_on_type_error.rb, line 15 def to_h extensions = { "code" => code, "typeName" => type_name, "fieldName" => field_name } super.merge({ "extensions" => extensions }) end