
:page_with_curl: Pagination response object function + types for typeorm + nestjs
## Overview
Navigating paginated data can often be a challenging task in web applications, especially when it comes to ensuring that everything is typed correctly and functions seamlessly. The Pagination helper method for TypeORM repositories and query builders offers a comprehensive solution for handling pagination effectively within a NestJS framework. This tool is designed to simplify the process of managing paginated responses while maintaining strict typing, and it has drawn attention for its user-friendly approach and compatibility with varying TypeORM versions.
The flexibility of this helper method allows developers to implement pagination effortlessly, whether they're working with standard repositories or query builders. With features that cater to both eager loading and raw queries, it provides a robust set of options for generating paginated responses tailored to specific application needs.
## Features
- **Compatibility with TypeORM Versions:** Works seamlessly with typeorm^0.2.6 and typeorm^0.3.0, ensuring developers can use it alongside the latest frameworks.
- **Pagination Metadata:** Returns detailed meta-information including total items, items per page, and current page, enhancing the clarity of paginated data.
- **Customizable Meta Data:** Offers a metaTransformer option, allowing the customization of the pagination metadata returned for tailored output.
- **Dynamic Links Generation:** Automatically generates URLs for navigating through pages, including first, previous, next, and last pages, optimizing user experience.
- **Eager Loading Support:** Simplifies the process of eager loading using TypeORM’s built-in properties for retrieving associated entities.
- **Custom Query Parameters:** Provides the ability to modify limit and page labels in the query parameters with the routingLabels option.
- **Handles Raw Queries:** Effectively manages raw data alongside entity results, giving developers the flexibility to design sophisticated queries as needed.
- **Adaptable Usage Across Services:** Can be integrated into Services, Repositories, and Controllers, making it versatile for different parts of the application architecture.

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.
TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.