nestjsx / nestjs-typeorm-paginate

:page_with_curl: Pagination response object function + types for typeorm + nestjs
MIT License
840 stars 122 forks source link

Use getCount() instead of raw count query #850

Closed leandro-gomez closed 6 months ago

leandro-gomez commented 1 year ago

The select count from query counts total rows returned. That returns an incorrect total_items value.

Should fix https://github.com/nestjsx/nestjs-typeorm-paginate/issues/758. The regression was introduced https://github.com/nestjsx/nestjs-typeorm-paginate/pull/612