Module: GraphQL::Schema::Member::HasArguments::HasDirectiveArguments Private

Included in:
Directive
Defined in:
lib/graphql/schema/member/has_arguments.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#validate_directive_argument(arg_defn, value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



327
328
329
330
331
# File 'lib/graphql/schema/member/has_arguments.rb', line 327

def validate_directive_argument(arg_defn, value)
  if value.nil? && arg_defn.type.non_null?
    raise ArgumentError, "#{arg_defn.path} is required, but no value was given"
  end
end