Pagination and filtering helper method for TypeORM repositories or query builders using Nest.js framework.