Skip to content

Commit 40eedd3

Browse files
authored
Uses "update" instead of "upsert" for update sample
1 parent 405ae20 commit 40eedd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datastore/api/src/functions/concepts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function update(DatastoreClient $datastore)
125125
$key = $datastore->key('Task', 'sampleTask');
126126
$task = $transaction->lookup($key);
127127
$task['priority'] = 5;
128-
$transaction->upsert($task);
128+
$transaction->update($task);
129129
$transaction->commit();
130130
// [END datastore_update]
131131
return $task;

0 commit comments

Comments
 (0)