Skip to content

Commit

Permalink
docs(samples): Update Datastore snippet for read only transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWhitehead authored and JustinBeckwith committed Jan 30, 2019
1 parent a5cf576 commit fd8248f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/concepts.js
Expand Up @@ -1125,7 +1125,7 @@ class Transaction extends TestHelper {

// [START datastore_transactional_single_entity_group_read_only]
async function getTaskListEntities() {
const transaction = datastore.transaction();
const transaction = datastore.transaction({readOnly: true});
try {
const taskListKey = datastore.key(['TaskList', 'default']);

Expand Down

0 comments on commit fd8248f

Please sign in to comment.