Module: GraphQL::Define::AssignArgument

Defined in:
lib/graphql/define/assign_argument.rb

Overview

Turn argument configs into a Argument.

Class Method Summary collapse

Class Method Details

.call(target, *args, **kwargs, &block) ⇒ Object



6
7
8
9
# File 'lib/graphql/define/assign_argument.rb', line 6

def self.call(target, *args, **kwargs, &block)
  argument = GraphQL::Argument.from_dsl(*args, **kwargs, &block)
  target.arguments[argument.name] = argument
end