Class: Ibrain::Util::QueryCombiner
- Inherits:
-
Object
- Object
- Ibrain::Util::QueryCombiner
- Defined in:
- app/graphql/ibrain/util/query_combiner.rb
Class Method Summary collapse
Class Method Details
.combine(query_types) ⇒ Object
6 7 8 9 10 |
# File 'app/graphql/ibrain/util/query_combiner.rb', line 6 def self.combine(query_types) Array(query_types).inject({}) do |acc, query_type| acc.merge!(query_type.fields) end end |