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

Missing .collections() method in DocumentReference #85

Open
gonzaatcroud opened this issue Jul 27, 2024 · 1 comment
Open

Missing .collections() method in DocumentReference #85

gonzaatcroud opened this issue Jul 27, 2024 · 1 comment

Comments

@gonzaatcroud
Copy link

The Firestore docs for the DocumentReference class include a .collections method, which lists all subcollections present in the document.

Example use case:

from mockfirestore import MockFirestore
mock_db = MockFirestore()
mock_db.collection("SOME_COLLECTION").document("SOME_DOCUMENT").collections()

Error:

AttributeError: 'DocumentReference' object has no attribute 'collections'

Link to docs: https://cloud.google.com/python/docs/reference/firestore/latest/google.cloud.firestore_v1.document.DocumentReference#google_cloud_firestore_v1_document_DocumentReference_collections

@gonzaatcroud
Copy link
Author

Bumping this so one of the contributors can see this... @mdowds

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

1 participant