Skip to content

mourabraz/nest-typeorm-paginator

Repository files navigation

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.

About

simple paginator for nestjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published