benjamin658 / typeorm-cursor-pagination

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

How to get total count? #38

Closed iarmankhan closed 3 years ago

iarmankhan commented 3 years ago

Pretty much the title, I want to know the total count of records to show in app.

benjamin658 commented 3 years ago

Hi @iarmankhan , you can use queryBuilder.getCount() directly.