class GraphQL::StaticValidation::DirectivesAreDefinedError
Attributes
Public Class Methods
# File lib/graphql/static_validation/rules/directives_are_defined_error.rb, line 8 def initialize(message, path: nil, nodes: [], directive:) super(message, path: path, nodes: nodes) @directive_name = directive end
Calls superclass method
GraphQL::StaticValidation::Error::new
Public Instance Methods
Source
# File lib/graphql/static_validation/rules/directives_are_defined_error.rb, line 25 def code "undefinedDirective" end
Source
# File lib/graphql/static_validation/rules/directives_are_defined_error.rb, line 14 def to_h extensions = { "code" => code, "directiveName" => directive_name } super.merge({ "extensions" => extensions }) end
A hash representation of this Message
Calls superclass method
GraphQL::StaticValidation::Error#to_h