code: def _get_results_by_type(self, type):
          
          instance = self._create_model_by_type(type)
  
          key = instance.get_key_name()
  
          query = instance.new_query()
  
          query = self._use_with_trashed(query)
  
          return query.where_in(key, self._gather_keys_by_type(type).all()).get()
docs: Get all the relation results for a type.
  
          :param type: The type
          :type type: str
  
          :rtype: Collection