Skip to content
API/NestjsxCrudResponseOptions

NestjsxCrudResponseOptions

src/models/response-options.tsclass

Pre-configured ResponseOptions for the @nestjsx/crud driver

The getMany envelope is flat: { data, count, total, page, pageCount }. perPage defaults to the count field — the number of entities on the current page, which equals the requested limit on every page except a partial last one. The envelope carries no from/to indices and no navigation links, so those paths default to empty strings (the strategy derives from/to and leaves the URLs undefined); consumers can override any path via PaginationConfig.

new NestjsxCrudResponseOptions(options: PaginationConfig)
Parameter Type Description
options PaginationConfig —
Property Type Description
currentPage string —
data string —
firstPageUrl string —
from string —
lastPage string —
lastPageUrl string —
nextPageUrl string —
path string —
perPage string —
prevPageUrl string —
to string —
total string —