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