Skip to content
API/OdataResponseOptions

OdataResponseOptions

src/models/response-options.tsclass

Pre-configured ResponseOptions for the OData v4 driver

The OData collection envelope is { "@odata.count", "@odata.nextLink", "value" } — flat keys that contain literal dots, so the strategy reads them with flat bracket access (never dot-path traversal). No body field names the current page, per-page, or last-page; the strategy derives those from the @odata.nextLink URL’s $skip / $top params, so the corresponding key paths default to empty strings and are ignored.

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