class GraphQL::StaticValidation::RequiredInputObjectAttributesArePresentError
Attributes
Public Class Methods
(String message, path: Array[String | Integer]?, nodes: GraphQL::Language::Nodes::AbstractNode | Array[GraphQL::Language::Nodes::AbstractNode], argument_type: String, argument_name: String, input_object_type: String) → void
Source
# File lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb, line 14 def initialize(message, path:, nodes:, argument_type:, argument_name:, input_object_type:) super(message, path: path, nodes: nodes) @argument_type = argument_type #: String @argument_name = argument_name #: String @input_object_type = input_object_type #: String end
Calls superclass method
GraphQL::StaticValidation::Error::new
Public Instance Methods
# File lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb, line 37 def code "missingRequiredInputObjectAttribute" end
# File lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb, line 23 def to_h extensions = { "code" => code, "argumentName" => argument_name, "argumentType" => argument_type, "inputObjectType" => input_object_type, } super.merge({ "extensions" => extensions }) end
A hash representation of this Message
Calls superclass method
GraphQL::StaticValidation::Error#to_h