class GraphQL::StaticValidation::RequiredInputObjectAttributesArePresentError
Attributes
argument_name[R]
argument_type[R]
input_object_type[R]
Public Class Methods
new(message, path:, nodes:, argument_type:, argument_name:, input_object_type:)
click to toggle source
Calls superclass method
GraphQL::StaticValidation::Error::new
# File lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb, line 9 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
Public Instance Methods
code()
click to toggle source
# File lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb, line 30 def code "missingRequiredInputObjectAttribute" end
to_h()
click to toggle source
A hash representation of this Message
Calls superclass method
GraphQL::StaticValidation::Error#to_h
# File lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb, line 17 def to_h extensions = { "code" => code, "argumentName" => argument_name, "argumentType" => argument_type, "inputObjectType" => input_object_type, } super.merge({ "extensions" => extensions }) end