We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e950c3 commit 05a51b2Copy full SHA for 05a51b2
firestore/src/update_doc_increment.php
@@ -43,7 +43,7 @@ function update_doc_increment($projectId)
43
44
// Atomically increment the population of the city by 50.
45
$cityRef->update([
46
- ['path' => 'regions', 'value' => FieldValue::incremet(50)]
+ ['path' => 'regions', 'value' => FieldValue::increment(50)]
47
]);
48
# [END fs_update_doc_increment]
49
printf('Updated the population of the DC document in the cities collection.' . PHP_EOL);
0 commit comments