class GraphQL::StaticValidation::RequiredArgumentsArePresentError
Attributes
Public Class Methods
(String message, class_name: String, name: String, arguments: String, ?path: Array[String | Integer]?, ?nodes: GraphQL::Language::Nodes::AbstractNode | Array[GraphQL::Language::Nodes::AbstractNode]) → void
Source
# File lib/graphql/static_validation/rules/required_arguments_are_present_error.rb, line 15 def initialize(message, class_name:, name:, arguments:, path: nil, nodes: []) super(message, path: path, nodes: nodes) @class_name = class_name #: String @name = name #: String @arguments = arguments #: String end
Calls superclass method
GraphQL::StaticValidation::Error::new
Public Instance Methods
# File lib/graphql/static_validation/rules/required_arguments_are_present_error.rb, line 38 def code "missingRequiredArguments" end
# File lib/graphql/static_validation/rules/required_arguments_are_present_error.rb, line 24 def to_h extensions = { "code" => code, "className" => class_name, "name" => name, "arguments" => arguments } super.merge({ "extensions" => extensions }) end
A hash representation of this Message
Calls superclass method
GraphQL::StaticValidation::Error#to_h