Skip to content

Commit 41ae58e

Browse files
authored
Merge pull request GoogleCloudPlatform#948 from jlara310/patch-1
Update Firestore increment snippet name
2 parents 0da8594 + 99f239a commit 41ae58e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firestore/src/update_doc_increment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ function update_doc_increment($projectId)
3838
$db = new FirestoreClient([
3939
'projectId' => $projectId,
4040
]);
41-
# [START fs_update_doc_array]
41+
# [START fs_update_doc_increment]
4242
$cityRef = $db->collection('cities')->document('DC');
4343

4444
// Atomically increment the population of the city by 50.
4545
$cityRef->update([
4646
['path' => 'regions', 'value' => FieldValue::incremet(50)]
4747
]);
48-
# [END fs_update_doc_array]
48+
# [END fs_update_doc_increment]
4949
printf('Updated the population of the DC document in the cities collection.' . PHP_EOL);
5050
}

0 commit comments

Comments
 (0)