module GraphQL::Schema::Member::HasArguments::FieldConfigured
Public Instance Methods
Source
# File lib/graphql/schema/member/has_arguments.rb, line 232 def all_argument_definitions if @resolver_class all_defns = {} @resolver_class.all_field_argument_definitions.each do |arg_defn| key = arg_defn.graphql_name case (current_value = all_defns[key]) when nil all_defns[key] = arg_defn when Array current_value << arg_defn when GraphQL::Schema::Argument all_defns[key] = [current_value, arg_defn] else raise "Invariant: Unexpected argument definition, #{current_value.class}: #{current_value.inspect}" end end all_defns.merge!(own_arguments) all_defns = all_defns.values all_defns.flatten! all_defns else super end end
Calls superclass method
Source
# File lib/graphql/schema/member/has_arguments.rb, line 228 def any_arguments? super || (@resolver_class && @resolver_class.any_field_arguments?) end
Calls superclass method
# File lib/graphql/schema/member/has_arguments.rb, line 210 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
Calls superclass method