DirectusResponseOptions
Defined in: src/lib/models/response-options.ts:90
Pre-configured ResponseOptions for the Directus driver
The Directus envelope is { data, meta: { total_count, filter_count } }
(with meta=total_count,filter_count requested — the request strategy
always emits it). total defaults to meta.filter_count, the count of
items matching the current filter; point it at meta.total_count via
IPaginationConfig for the unfiltered collection size. The envelope
names no current page, page size, or navigation URLs, so those paths
default to empty strings — the strategy falls back to page 1 and
derives lastPage/from/to only when the response provably holds
the whole filtered set. All paths are overridable (dot notation
supported) for custom wrappers that do include paging fields.
Extends
Constructors
Constructor
new DirectusResponseOptions(
options):DirectusResponseOptions
Defined in: src/lib/models/response-options.ts:91
Parameters
options
Returns
DirectusResponseOptions
Overrides
Properties
currentPage
readonlycurrentPage:string
Defined in: src/lib/models/response-options.ts:18
Inherited from
data
readonlydata:string
Defined in: src/lib/models/response-options.ts:19
Inherited from
firstPageUrl
readonlyfirstPageUrl:string
Defined in: src/lib/models/response-options.ts:20
Inherited from
from
readonlyfrom:string
Defined in: src/lib/models/response-options.ts:21
Inherited from
lastPage
readonlylastPage:string
Defined in: src/lib/models/response-options.ts:22
Inherited from
lastPageUrl
readonlylastPageUrl:string
Defined in: src/lib/models/response-options.ts:23
Inherited from
nextPageUrl
readonlynextPageUrl:string
Defined in: src/lib/models/response-options.ts:24
Inherited from
path
readonlypath:string
Defined in: src/lib/models/response-options.ts:25
Inherited from
perPage
readonlyperPage:string
Defined in: src/lib/models/response-options.ts:26
Inherited from
prevPageUrl
readonlyprevPageUrl:string
Defined in: src/lib/models/response-options.ts:27
Inherited from
to
readonlyto:string
Defined in: src/lib/models/response-options.ts:28
Inherited from
total
readonlytotal:string
Defined in: src/lib/models/response-options.ts:29