File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -337,7 +337,6 @@ Entity.prototype.testDelete = function(callback) {
337337Entity . 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]
You can’t perform that action at this time.
0 commit comments