benjamin658 / typeorm-cursor-pagination

Cursor-based pagination works with TypeORM Query Builder.
MIT License
186 stars 40 forks source link

fix(Paginator-appendPagingQuery): if 'OR' directive exists, paging 'A… #41

Closed 0x171-0 closed 1 year ago

0x171-0 commented 3 years ago

'OR' directive will group the other directives (AND) in the where clause, so if 'OR' directive exists, paging 'AND' condition should be added in every directive group.

benjamin658 commented 3 years ago

Hi @masonCalmAndCode ,

Thanks for your contribution. Could you add a test to show the use case?