Skip to content

Commit 819b008

Browse files
committed
fix(Firestore): use bulkWriter instead of batch
1 parent f8cf45d commit 819b008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore/src/data_batch_writes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function data_batch_writes(string $projectId): void
3737
'projectId' => $projectId,
3838
]);
3939
# [START firestore_data_batch_writes]
40-
$batch = $db->batch();
40+
$batch = $db->bulkWriter();
4141

4242
# Set the data for NYC
4343
$nycRef = $db->collection('samples/php/cities')->document('NYC');

0 commit comments

Comments
 (0)