lib/rails/graphql/type/object.rb
# Use this method to assign interfaces to the object
Use this method to assign interfaces to the object
Use this method to assign interfaces to the object
def implements(*others)
            return if others.blank?
            cache = all_interfaces.dup
            others.flat_map do |item|
              item = find_interface!(item)
              next if cache.include?(item)
              item.implemented(self)
              interfaces << item
              cache << item
            end
          end
def implements ( * others ) return if others . blank? cache = all_interfaces . dup others . flat_map do | item | item = find_interface! ( item ) next if cache . include? ( item ) item . implemented ( self ) interfaces << item cache << item end end
Use this method to assign interfaces to the object
Use this method to assign interfaces to the object
others