简体   繁体   中英

How to list all collection IDs of a firestore project with the REST API

Searching through the google cloud docs and found ways to list projects such as https://cloud.google.com/resource-manager/reference/rest/v3/projects/list and also this one to list collection ids when you get the document path https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.documents/listCollectionIds#google.firestore.v1.Firestore.ListCollectionIds but still can't seem to find a REST API method to fetch all of the collection ids in a firestore project without a document path and just the project id.

You may be encountering this (long-standing) issue: Parent parameter has incorrect pattern for some of methods in discovery API .

To be clear, not all Collections are owned by the root. You are unable to enumerate Collections that are children of Documents without navigating through the hierarchy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM