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 = '' })