module GraphQL::StaticValidation::Error::ErrorHelper
Convenience for validators
Public Instance Methods
# File lib/graphql/static_validation/error.rb, line 12 def error(error_message, nodes, context: nil, path: nil, extensions: {}) path ||= context.path nodes = Array(nodes) GraphQL::StaticValidation::Error.new(error_message, nodes: nodes, path: path) end
Error error_message is located at node