gcloud Datastore transaction issue using nodejs
问题 I am using nodejs to contact the google datastore. This is my code: dataset.runInTransaction(function(transaction, done,err) { // From the `transaction` object, execute dataset methods as usual. // Call `done` when you're ready to commit all of the changes. transaction.save(entities, function(err) { if(err){ console.log("ERROR TRNASCTION"); transaction.rollback(done); return; }else{ console.log("TRANSACTION SUCCESS!"); done(); } }); }); If the save was not successful, I would like the