File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,6 @@ Entity.prototype.testDelete = function(callback) {
337
337
Entity . prototype . testBatchUpsert = function ( callback ) {
338
338
datastore . key = this . datastore . key ;
339
339
340
- // [START batch_upsert]
341
340
var taskKey1 = datastore . key ( [ 'Task' , 1 ] ) ;
342
341
var taskKey2 = datastore . key ( [ 'Task' , 2 ] ) ;
343
342
@@ -355,6 +354,7 @@ Entity.prototype.testBatchUpsert = function(callback) {
355
354
description : 'Integrate Cloud Datastore'
356
355
} ;
357
356
357
+ // [START batch_upsert]
358
358
datastore . upsert ( [
359
359
{
360
360
key : taskKey1 ,
@@ -392,19 +392,9 @@ Entity.prototype.testBatchLookup = function(callback) {
392
392
datastore . get ( [
393
393
taskKey1 ,
394
394
taskKey2
395
- ] , function ( err , entities ) {
395
+ ] , function ( err , tasks ) {
396
396
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.
408
398
}
409
399
} ) ;
410
400
// [END batch_lookup]
You can’t perform that action at this time.
0 commit comments