Kaltsoon / sequelize-cursor-pagination

➡️ Cursor-based pagination queries for Sequelize models
86 stars 27 forks source link

Return the passed model from withPagination (for convinience) #23

Closed borodean closed 5 years ago

borodean commented 5 years ago

Seems like a logical thing to me. This way instead of this...

constructor(Models) {
  this.Counter = Models.Counter;
  withPagination()(this.Counter);
}

...a developer can write this:

constructor(Models) {
  this.Counter = withPagination()(Models.Counter);
}

What do you think?

Kaltsoon commented 5 years ago

Yes, this makes sense