lib/rails/graphql/source/active_record/builders.rb
# Iterate over all the attributes, except the primary key, from the model
# but already set to be imported to GraphQL fields
# TODO: Turn into an enumerator
Iterate over all the attributes, except the primary key, from the model
but already set to be imported to GraphQL fields
TODO: Turn into an enumerator
Iterate over all the attributes except the primary key from the model but already set to be imported to GraphQL fields TODO : Turn into an enumerator
def each_attribute(holder, skip_primary_key = true)
        adapter_key = GraphQL.ar_adapter_key(adapter_name)
        skip_fields = skips_for(holder).map(&:to_s)
        skip_fields << model.inheritance_column
        skip_fields << primary_key unless skip_primary_key
        send("#{adapter_key}_attributes") do |attribute, *args|
          yield attribute, *args unless skip_fields.include?(attribute)
        end
      end
def each_attribute ( holder , skip_primary_key = true ) adapter_key = GraphQL . ar_adapter_key ( adapter_name ) skip_fields = skips_for ( holder ) . map ( & :to_s ) skip_fields << model . inheritance_column skip_fields << primary_key unless skip_primary_key send ( "#{adapter_key}_attributes" ) do | attribute , * args | yield attribute , * args unless skip_fields . include? ( attribute ) end end
Iterate over all the attributes, except the primary key, from the model
but already set to be imported to GraphQL fields
TODO: Turn into an enumerator
Iterate over all the attributes except the primary key from the model but already set to be imported to GraphQL fields TODO : Turn into an enumerator
holder
skip_primary_key