Skip to content

Commit dfb7a0e

Browse files
committed
Batch ops included too much extra info.
1 parent b9fdfab commit dfb7a0e

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

datastore/concepts.js

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ Entity.prototype.testDelete = function(callback) {
337337
Entity.prototype.testBatchUpsert = function(callback) {
338338
datastore.key = this.datastore.key;
339339

340-
// [START batch_upsert]
341340
var taskKey1 = datastore.key(['Task', 1]);
342341
var taskKey2 = datastore.key(['Task', 2]);
343342

@@ -355,6 +354,7 @@ Entity.prototype.testBatchUpsert = function(callback) {
355354
description: 'Integrate Cloud Datastore'
356355
};
357356

357+
// [START batch_upsert]
358358
datastore.upsert([
359359
{
360360
key: taskKey1,
@@ -392,19 +392,9 @@ Entity.prototype.testBatchLookup = function(callback) {
392392
datastore.get([
393393
taskKey1,
394394
taskKey2
395-
], function(err, entities) {
395+
], function(err, tasks) {
396396
if (!err) {
397-
// entities[0].data = {
398-
// type: 'Personal',
399-
// done: false,
400-
// priority: 4,
401-
// description: 'Learn Cloud Datastore'
402-
// };
403-
404-
// entities[1].data = {
405-
// type: 'Work',
406-
// // ...
407-
// };
397+
// Tasks retrieved successfully.
408398
}
409399
});
410400
// [END batch_lookup]

0 commit comments

Comments
 (0)