Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MiaoStarMachineGun opened this issue May 8, 2024 · 1 comment
Assignees

Comments

@MiaoStarMachineGun
Copy link

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
Copy link
Contributor

ohmayr commented May 10, 2024

@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.

@ohmayr ohmayr closed this as completed May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants