Method: GraphQL::Schema::Member::HasArguments::FieldConfigured#arguments

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

#arguments(context = GraphQL::Query::NullContext.instance, _require_defined_arguments = nil) ⇒ 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.



175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# File 'lib/graphql/schema/member/has_arguments.rb', line 175

def arguments(context = GraphQL::Query::NullContext.instance, _require_defined_arguments = nil)
  own_arguments = super
  if @resolver_class
    inherited_arguments = @resolver_class.field_arguments(context)
    if !own_arguments.empty?
      if !inherited_arguments.empty?
        inherited_arguments.merge(own_arguments)
      else
        own_arguments
      end
    else
      inherited_arguments
    end
  else
    own_arguments
  end
end