Cloud Firestore: Add Collection And Sub Collection In One Go
Reading the documentation I can't see a way if this is possible in a sensible way. I'm trying to create a document team with a sub document of member. And what I'm really trying to
Solution 1:
The random IDs for new documents are always generated on the client. You can use the doc() method on a CollectionReference with no parameters to generate a reference to a document that has a random ID without actually adding the document. You can then work with that reference's id property immeidately, and create the document later.
Post a Comment for "Cloud Firestore: Add Collection And Sub Collection In One Go"