Skip to content

Support for nested Collections / SubCollections?  #10

@sceee

Description

@sceee

Are Subcollections supported with mock_cloud_firestore?

As an example, in Firestore, I have the following collection:
/maincollection/123/subcollection/456

Does mock_cloud_firestore work with such subcollections?

I tried to nest these in the source the following way but it does not work:

{
  "maincollection": {
      "1": {
         "abc": "xyz,
         "subcollection": {
            "999": {
               "example": "ex"
            }
         }
      }
   }
}

Also, how does mock_cloud_firestore support map fields of a document compared to subcollections?
How would they be represented in the JSON?

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