Reputation: 1802
I have a usecase where I have a document DI in collection A with some fields. And when all the necessary fields are filled and the document is saved, I need to create a document DV in collection B.
That document DV needs to take fields from document DI, but it also has another fields.
The problem is that I need some sort of link, not just a copy of the fields. When I change the fields which are common for both of the documents, I need to see the change in both of them.
Is firestore able to do this? Or do I have to do it myself by checking for changes and updating both of them myself?
Upvotes: 1
Views: 205
Reputation: 6354
Firestore, on its own, won't automatically mirror fields between two documents.
However, you have at least 3 options:
Upvotes: 2