lib/rails/graphql/source/active_record/builders.rb
def reflection_attributes(holder)
        items = []
        each_reflection(holder) do |item|
          next unless item.belongs_to?
          next items << item.foreign_key.to_s unless item.polymorphic?
          items += [item.foreign_type, item.foreign_key]
        end

        items.compact.flatten.unshift(primary_key)
      end
# Get all unique attribute names that exists in the current model
Get all unique attribute names that exists in the current model
Get all unique attribute names that exists in the current model
def reflection_attributes(holder)
        items = []
        each_reflection(holder) do |item|
          next unless item.belongs_to?
          next items << item.foreign_key.to_s unless item.polymorphic?
          items += [item.foreign_type, item.foreign_key]
        end
        items.compact.flatten.unshift(primary_key)
      end
def reflection_attributes ( holder ) items = [ ] each_reflection ( holder ) do | item | next unless item . belongs_to? next items << item . foreign_key . to_s unless item . polymorphic? items += [ item . foreign_type , item . foreign_key ] end items . compact . flatten . unshift ( primary_key ) end
Get all unique attribute names that exists in the current model
Get all unique attribute names that exists in the current model
holder