Skip to content
API/StrapiResponseOptions

StrapiResponseOptions

src/models/response-options.tsclass

Pre-configured ResponseOptions for the Strapi driver

Uses dot-notation paths to access the nested meta.pagination.* envelope Strapi v4/v5 emits. Strapi does not include navigation links by default, so the URL paths point at locations that will resolve to undefined unless the consumer overrides them.

new StrapiResponseOptions(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