Module: GraphQL::Autotest::ArgumentsFetcher
- Defined in:
- lib/graphql/autotest/arguments_fetcher.rb
Constant Summary collapse
- EMPTY =
-> (field, ancestors:) { field.arguments.empty? && {} }
- NO_REQUIRED =
-> (field, ancestors:) { field.arguments.none? { |arg| Util.non_null?(arg.type) } && {} }
- DEFAULT =
combine(EMPTY, NO_REQUIRED)
Class Method Summary collapse
Class Method Details
.combine(*strategy) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/graphql/autotest/arguments_fetcher.rb', line 4 def self.combine(*strategy) -> (*args, **kwargs) do strategy.find do |s| r = s.call(*args, **kwargs) break r if r end end end |