const query = BlogModel.query().limit(20);
query.run({ format: "ENTITY" })
const entities = result[0].entities;
// entities are gstore instances, you can manipulate them
// and then save them by calling:
gstore.save(entities).then(() => {
gstore.save(entities, undefined, { validate: true, method: 'insert' })
* From inside a transaction
const transaction = gstore.transaction();
transaction.run().then(() => {
const query = BlogModel.query(null, transaction).limit(20);
const entities = response[0].entities;
// Call the global save method passing the transaction.
gstore.save(entities, transaction).then( ... );