class GraphQL::StaticValidation::ArgumentsAreDefinedError
Attributes
Public Class Methods
# File lib/graphql/static_validation/rules/arguments_are_defined_error.rb, line 11 def initialize(message, path: nil, nodes: [], name:, type:, argument_name:, parent:) super(message, path: path, nodes: nodes) @name = name @type_name = type @argument_name = argument_name @parent = parent end
Calls superclass method
GraphQL::StaticValidation::Error::new
Public Instance Methods
Source
# File lib/graphql/static_validation/rules/arguments_are_defined_error.rb, line 33 def code "argumentNotAccepted" end
Source
# File lib/graphql/static_validation/rules/arguments_are_defined_error.rb, line 20 def to_h extensions = { "code" => code, "name" => name, "typeName" => type_name, "argumentName" => argument_name } super.merge({ "extensions" => extensions }) end
A hash representation of this Message
Calls superclass method
GraphQL::StaticValidation::Error#to_h