googleapis / google-api-python-client

🐍 The official Python client library for Google's discovery based APIs.
https://googleapis.github.io/google-api-python-client/docs/
Apache License 2.0
7.55k stars 2.37k forks source link

Issue with Cloud Firestore API: listDocuments method and listing all collections in a database #2394

Closed MiaoStarMachineGun closed 1 month ago

MiaoStarMachineGun commented 1 month ago

Hello, I am encountering two issues with the Cloud Firestore API:

1.According to the documentation for the projects.databases.documents.listDocuments method, collectionId is listed as an optional parameter. However, when I make a request without including this parameter, I receive an error stating "Missing required parameter 'collectionId'". This seems to contradict the documentation.

2.I am unable to find a way to list all collections in a Firestore database when only the database name is known. The Firestore data model is based on collections and documents, and it seems that there is no direct way to list all collections in a database without knowing at least one document path.

I would appreciate any guidance or clarification on these issues. Thank you for your time and assistance.

ohmayr commented 1 month ago

@GlodexperienceforU Thanks for reporting this.

1 - seems like an issue with the API documentation. 2 - seems like a question to the Firestore API team or possibly a feature request.

Kindly report this directly to the Firestore API team by submitting feedback here.

Please re-open another issue if you have any concerns with the Python client.