Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 740 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 740 Bytes

Nest Logo

NestJs Typeorm Paginator

Description

A helper package to paginate,sort and filter your lists.

Installation

$ npm install nest-typeorm-paginator

Usage

  • See an example in /test/models

Add a config file in the root folder

// config.pagination.ts
module.exports = {
  default: {
    sortableColumns: ['id'],
    filterableColumns: ['id'],
  },
  Post: {
    sortableColumns: ['id', 'title'],
    filterableColumns: ['id', 'title'],
  },
};

Made by

License

MIT licensed.