• Retrieves all documents from the specified Firestore collection, applies a mapper function to each document's data, and stores the updated documents back to Firestore.

    Parameters

    • collection_path: string

      The Firestore collection path to retrieve

    • mapper: ((doc: {
          document: DocumentData;
          full_path: string;
          id: string;
      }) => DocumentData)

      A function that takes a single document object and returns the transformed document data

        • (doc): DocumentData
        • Parameters

          • doc: {
                document: DocumentData;
                full_path: string;
                id: string;
            }
            • document: DocumentData
            • full_path: string
            • id: string

          Returns DocumentData

    Returns Promise<void>

    A Promise that resolves once all documents have been updated.