public function collection(string $path = ''): CollectionReference
    {
        try {
            return new CollectionReference(Uri::resolve($this->uri, $path), $this->client);
        } catch (\InvalidArgumentException $e) {
            throw new InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
        }
    }