From 819b0089cc6bdecde9fe4ec1c54f80f130c4b4d1 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 15 Dec 2025 10:28:55 -0800 Subject: [PATCH] fix(Firestore): use bulkWriter instead of batch --- firestore/src/data_batch_writes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firestore/src/data_batch_writes.php b/firestore/src/data_batch_writes.php index 156637ec41..ff1a53c554 100644 --- a/firestore/src/data_batch_writes.php +++ b/firestore/src/data_batch_writes.php @@ -37,7 +37,7 @@ function data_batch_writes(string $projectId): void 'projectId' => $projectId, ]); # [START firestore_data_batch_writes] - $batch = $db->batch(); + $batch = $db->bulkWriter(); # Set the data for NYC $nycRef = $db->collection('samples/php/cities')->document('NYC');