Skip to content
qubeejs/angular
3.8/API/DirectusResponseOptions

DirectusResponseOptions

ArchivedThese are the docs for ng-qubee 3.8. Read the 4.0 docs for @qubeejs/angular.

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.

new DirectusResponseOptions(options): DirectusResponseOptions

Defined in: src/lib/models/response-options.ts:91

IPaginationConfig

DirectusResponseOptions

ResponseOptions.constructor

readonly currentPage: string

Defined in: src/lib/models/response-options.ts:18

ResponseOptions.currentPage


readonly data: string

Defined in: src/lib/models/response-options.ts:19

ResponseOptions.data


readonly firstPageUrl: string

Defined in: src/lib/models/response-options.ts:20

ResponseOptions.firstPageUrl


readonly from: string

Defined in: src/lib/models/response-options.ts:21

ResponseOptions.from


readonly lastPage: string

Defined in: src/lib/models/response-options.ts:22

ResponseOptions.lastPage


readonly lastPageUrl: string

Defined in: src/lib/models/response-options.ts:23

ResponseOptions.lastPageUrl


readonly nextPageUrl: string

Defined in: src/lib/models/response-options.ts:24

ResponseOptions.nextPageUrl


readonly path: string

Defined in: src/lib/models/response-options.ts:25

ResponseOptions.path


readonly perPage: string

Defined in: src/lib/models/response-options.ts:26

ResponseOptions.perPage


readonly prevPageUrl: string

Defined in: src/lib/models/response-options.ts:27

ResponseOptions.prevPageUrl


readonly to: string

Defined in: src/lib/models/response-options.ts:28

ResponseOptions.to


readonly total: string

Defined in: src/lib/models/response-options.ts:29

ResponseOptions.total