class GraphQL::StaticValidation::VariablesAreInputTypesError
Attributes
Public Class Methods
# File lib/graphql/static_validation/rules/variables_are_input_types_error.rb, line 9 def initialize(message, path: nil, nodes: [], type:, name:) super(message, path: path, nodes: nodes) @type_name = type @variable_name = name end
Calls superclass method
GraphQL::StaticValidation::Error::new
Public Instance Methods
Source
# File lib/graphql/static_validation/rules/variables_are_input_types_error.rb, line 28 def code "variableRequiresValidType" end
Source
# File lib/graphql/static_validation/rules/variables_are_input_types_error.rb, line 16 def to_h extensions = { "code" => code, "typeName" => type_name, "variableName" => variable_name } super.merge({ "extensions" => extensions }) end
A hash representation of this Message
Calls superclass method
GraphQL::StaticValidation::Error#to_h