0.0.5 • Published 3 years ago

nest-typeorm-paginator v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.