You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to list composite indexes within a specific collection. Documentation for ListIndexesRequest says:
parent (str):
Required. A parent name of the form
``projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}``
And since parent expects a collection id at the end, I assume it should return indexes only within this collection, however it's listing ALL indexes of my database.
I just don't understand if it's an expected behavior, or a bug. If you have a suggestion how I can achieve it, I would appreciate some help.
Hi,
I'm trying to list composite indexes within a specific collection. Documentation for
ListIndexesRequest
says:And since
parent
expects a collection id at the end, I assume it should return indexes only within this collection, however it's listing ALL indexes of my database.I just don't understand if it's an expected behavior, or a bug. If you have a suggestion how I can achieve it, I would appreciate some help.
Environment details
google-cloud-firestore
version: 2.12.0Code example
If I run this function with
path="projects/<>/databases/(default)/collectionGroups/fooBar"
, I'll get these (project name obfuscated):As you can see, indexes from another collection are still in the response.
Thanks!
The text was updated successfully, but these errors were encountered: