Parameters
- collection_path: string
- mapper: ((doc: {
document: DocumentData;
full_path: string;
id: string;
}) => DocumentData)- (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.
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.