class GraphQL::StaticValidation::VariableUsagesAreAllowedError
Attributes
argument_name[R]
error_message[R]
type_name[R]
variable_name[R]
Public Class Methods
new(message, path: nil, nodes: [], type:, name:, argument:, error:)
click to toggle source
Calls superclass method
GraphQL::StaticValidation::Error::new
# File lib/graphql/static_validation/rules/variable_usages_are_allowed_error.rb, line 10 def initialize(message, path: nil, nodes: [], type:, name:, argument:, error:) super(message, path: path, nodes: nodes) @type_name = type @variable_name = name @argument_name = argument @error_message = error end
Public Instance Methods
code()
click to toggle source
# File lib/graphql/static_validation/rules/variable_usages_are_allowed_error.rb, line 33 def code "variableMismatch" 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/variable_usages_are_allowed_error.rb, line 19 def to_h extensions = { "code" => code, "variableName" => variable_name, "typeName" => type_name, "argumentName" => argument_name, "errorMessage" => error_message } super.merge({ "extensions" => extensions }) end