Replies: 1 comment 1 reply
-
You should try all Firestore examples to understand the concept and how to use it then you will get the idea to apply. To create new doc, use create. To target to the document, you just provide the path to that document which included subcollections and subdocuments in case of nested document. For example, to update the field's values in subdoc2 (document) which is in the subcol1 (collection) in doc1 (document) of collection1, the document path to use in the functions can be. collection1/doc1/subcol1/subdoc2 The document path structure above applied to all Firestore functions of this library. The collection will be created as it never existed. If the document path ends with collection id, which means you never provide the document id, the new doc with random doc Id will be created. |
Beta Was this translation helpful? Give feedback.
-
Hi, what function should I use to create new data collection on each data upload in the same document. I want to save temperature every 5 minutes and show It in a chart, but I do not know the function that should I use to not overwrite that data.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions