def list(cls: Type[TYetiObject]) -> Iterable[TYetiObject]:
        """Lists all objects.

        Returns:
          A list of YetiObjects.
        """
        coll = cls._collection_name
        type_filter = cls._type_filter

        if type_filter:
            objects = cls._db.aql.execute(
                "FOR o IN @@collection FILTER o.type IN @type RETURN o",
                bind_vars={"type": [type_filter], "@collection": coll},
                ttl=AQL_QUERY_MAX_TTL,
            )
        else:
            objects = cls._db.aql.execute(
                "FOR o IN @@collection RETURN o",
                bind_vars={"@collection": coll},
                ttl=AQL_QUERY_MAX_TTL,
            )

        for object in objects:
            try:
                object["__id"] = object.pop("_key")
                instance = cls.load(object)
                yield instance
            except Exception:
                logging.exception(f"Can't load object {object}")
Lists all objects.

        Returns:
          A list of YetiObjects.
        
core/database_arango.py