@sonhoai272/listview

1.1.9 • Public • Published

How to use

filter

  • filter: (req, res, next)

pagination

  • pagination: (req, res, next)

makeSort

  • makeSort: (req)

makeSearch

  • makeSearch: (req)

headers

  • headers: (columns = [], fieldsAcceptToShow = [])
  • columns get from client
  • fieldsAcceptToShow: columns defined by schema Mongo.

get

  • get: async ({ model, req, res, next, fieldsAcceptToShow = [], populate = {}, populateColumn = '' })

Readme

Keywords

none

Package Sidebar

Install

npm i @sonhoai272/listview

Weekly Downloads

1

Version

1.1.9

License

MIT

Unpacked Size

7.26 kB

Total Files

4

Last publish

Collaborators

  • sonhoai272