Javascript – Update a collection in Firebase firestore
I want to update the field code in all the documents of a collection. Since it takes multiple write operations, I want to update the collection altogether. This is the code (used batched writes as given in the documentation) :…