class GraphQL::StaticValidation::RequiredInputObjectAttributesArePresentError
Attributes
Public Class Methods
# File lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb, line 10 def initialize(message, path:, nodes:, argument_type:, argument_name:, input_object_type:) super(message, path: path, nodes: nodes) @argument_type = argument_type @argument_name = argument_name @input_object_type = input_object_type end
Calls superclass method
GraphQL::StaticValidation::Error::new
Public Instance Methods
Source
# File lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb, line 31 def code "missingRequiredInputObjectAttribute" end
Source
# File lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb, line 18 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