docs: function applyBatch(ops) {
    return db.batch(ops)
      .then(() => bus.publish('save', ops))
      .then(() => {
        const lastOp = _.last(ops);
  
        return lastOp && JSON.parse(lastOp.value);
      });
  }