docs: function (query, revMin, revMax, callback) {
      if (typeof revMin === 'function') {
        callback = revMin;
        revMin = 0;
        revMax = -1;
      } else if (typeof revMax === 'function') {
        callback = revMax;
        revMax = -1;
      }
  
      if (typeof query === 'string') {
        query = { aggregateId: query };
      }
  
      if (!query.aggregateId) {
        var err = new Error('An aggregateId should be passed!');
        debug(err);
        if (callback) callback(err);
        return;
      }
  
      this.store.getEventsByRevision(query, revMin, revMax, callback);
    }