def find(cls: Type[TYetiObject], **kwargs) -> TYetiObject | None:
        """Fetches a single object by value.

        Args:
          **kwargs: Keyword arguments that will be matched to the document.

        Returns:
          A Yeti object.
        """
        if "type" not in kwargs and getattr(cls, "_type_filter", None):
            kwargs["type"] = cls._type_filter

        async_col = cls._db.collection(cls._collection_name)
        job = async_col.find(kwargs, limit=1)
        while job.status() != "done":
            time.sleep(ASYNC_JOB_WAIT_TIME)
        documents = job.result()
        if not documents:
            return None
        document = documents.pop()
        document["__id"] = document.pop("_key")
        return cls.load(document)
Fetches a single object by value.

        Args:
          **kwargs: Keyword arguments that will be matched to the document.

        Returns:
          A Yeti object.
        
core/database_arango.py