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