class GraphQL::StaticValidation::ArgumentsAreDefinedError
Attributes
parent
[R]
GraphQL::Schema::Field | singleton(GraphQL::Schema::Directive) | GraphQL::Schema::Member::type_definition
Public Class Methods
(String message, name: String, type: String, argument_name: String, parent: GraphQL::Schema::Field | singleton(GraphQL::Schema::Directive) | GraphQL::Schema::Member::type_definition, ?path: Array[String | Integer]?, ?nodes: GraphQL::Language::Nodes::AbstractNode | Array[GraphQL::Language::Nodes::AbstractNode]) → void
Source
# File lib/graphql/static_validation/rules/arguments_are_defined_error.rb, line 17 def initialize(message, name:, type:, argument_name:, parent:, path: nil, nodes: []) super(message, path: path, nodes: nodes) @name = name #: String @type_name = type #: String @argument_name = argument_name #: String @parent = parent #: GraphQL::Schema::Field | singleton(GraphQL::Schema::Directive) | GraphQL::Schema::Member::type_definition end
Calls superclass method
GraphQL::StaticValidation::Error::new
Public Instance Methods
# File lib/graphql/static_validation/rules/arguments_are_defined_error.rb, line 41 def code "argumentNotAccepted" end
# File lib/graphql/static_validation/rules/arguments_are_defined_error.rb, line 27 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