firebase firestore adding new document inside a transaction – transaction.add is not a function January 4, 2024 by Tarik