Skip to content

Pager not made for list_collection_ids proto on firestore, seems heuristic may be incorrect? #516

@crwilcox

Description

@crwilcox
def collections(self):
        """List top-level collections of the client's database.

        Returns:
            Sequence[:class:`~google.cloud.firestore_v1.collection.CollectionReference`]:
                iterator of subcollections of the current document.
        """
        iterator = self._firestore_api.list_collection_ids(
            request={"parent": "{}/documents".format(self._database_string)},
            metadata=self._rpc_metadata,
        )
        iterator.client = self
        iterator.item_to_value = _item_to_collection_ref
        return iterator

This code is how we used ot use the list_collection_ids. However, it is no longer a pager/iterator.

https://github.com/googleapis/googleapis/blob/master/google/firestore/v1/firestore.proto#L842

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions