Method: Graphiti::Query#fields
- Defined in:
- lib/graphiti/query.rb
#fields ⇒ Object
121 122 123 124 125 126 127 128 129 |
# File 'lib/graphiti/query.rb', line 121 def fields @fields ||= begin hash = parse_fieldset(@params[:fields] || {}) hash.each_pair do |type, fields| hash[type] += extra_fields[type] if extra_fields[type] end hash end end |