Take a query object (usually from req.query, but technically can be anything) along with
optional defaults and return an object of type Api.CollectionParams. This allows you to easily
extract collection parameters (pagination and sorting) from a request to pass into the data
system.
Take a query object (usually from
req.query
, but technically can be anything) along with optional defaults and return an object of type Api.CollectionParams. This allows you to easily extract collection parameters (pagination and sorting) from a request to pass into the data system.