Module: GraphQL::Schema::Member::HasArguments::HasDirectiveArguments
- Included in:
- Directive
- Defined in:
- lib/graphql/schema/member/has_arguments.rb
Overview
-- @requires_ancestor: Kernel
Instance Method Summary collapse
Instance Method Details
#validate_directive_argument(arg_defn, value) ⇒ Object
369 370 371 372 373 |
# File 'lib/graphql/schema/member/has_arguments.rb', line 369 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 |