class GraphQL::StaticValidation::VariablesAreInputTypesError
Attributes
type_name[R]
variable_name[R]
Public Class Methods
new(message, path: nil, nodes: [], type:, name:)
click to toggle source
Calls superclass method
GraphQL::StaticValidation::Error::new
# File lib/graphql/static_validation/rules/variables_are_input_types_error.rb, line 8 def initialize(message, path: nil, nodes: [], type:, name:) super(message, path: path, nodes: nodes) @type_name = type @variable_name = name end
Public Instance Methods
code()
click to toggle source
# File lib/graphql/static_validation/rules/variables_are_input_types_error.rb, line 27 def code "variableRequiresValidType" 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/variables_are_input_types_error.rb, line 15 def to_h extensions = { "code" => code, "typeName" => type_name, "variableName" => variable_name } super.merge({ "extensions" => extensions }) end