protected function getCollection(): Collection
    {
        $conn = $this->connPool->getConnection();
        $database = $conn->defaultDatabase;
        $collection = $this->schema->collection;

        return $conn->getRawConnection()->$database->$collection;
    }
protected function getCollection(): Collection
    {
        $conn = $this->connPool->getConnection();
        $database = $conn->defaultDatabase;
        $collection = $this->schema->collection;

        return $conn->getRawConnection()->$database->$collection;
    }
protected function getCollection ( ) : Collection { $ conn = $ this -> connPool -> getConnection ( ) ; $ database = $ conn -> defaultDatabase ; $ collection = $ this -> schema -> collection ; return $ conn -> getRawConnection ( ) -> $ database -> $ collection ; }
Retrieves the Collection object.

@return Collection
Retrieves the Collection object .