Method: Graphiti::Query#fields

Defined in:
lib/graphiti/query.rb

#fieldsObject



126
127
128
129
130
131
132
133
134
# File 'lib/graphiti/query.rb', line 126

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