Method: GraphQL::Schema::Member::HasArguments::ClassConfigured::InheritedArguments#all_argument_definitions
- Defined in:
- lib/graphql/schema/member/has_arguments.rb
#all_argument_definitions ⇒ 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.
146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/graphql/schema/member/has_arguments.rb', line 146 def all_argument_definitions all_defns = {} ancestors.reverse_each do |ancestor| if ancestor.respond_to?(:own_arguments) all_defns.merge!(ancestor.own_arguments) end end all_defns = all_defns.values all_defns.flatten! all_defns end |