Skip to content

Missing .collections() method in DocumentReference #85

Description

@gonzaatcroud

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions