skip to Main Content

Firebase – How to unify this two instructions?

Is it possible to unify in a single instruction these two Firestore document set/update? await batchArray[batchIndex].set(finref, doc2.data()); await batchArray[batchIndex].update(finref, {"esito" : 1, "timestamp": currentTime}); Where "finref" is a document reference and doc2 is a DocumentSnapshot

VIEW QUESTION
Back To Top
Search