IConfig
ArchivedThese are the docs for ng-qubee 3.8. Read the 4.0 docs for @qubeejs/angular.
Defined in: src/lib/interfaces/config.interface.ts:21
Main configuration interface for ng-qubee
Allows configuring the pagination driver and customizing both request query parameter keys and response field keys.
Example
Section titled “Example”const config: IConfig = { driver: DriverEnum.NESTJS, request: { filters: 'filter', sort: 'sortBy' }, response: { data: 'data' }};Properties
Section titled “Properties”driver
Section titled “driver”driver:
DriverEnum
Defined in: src/lib/interfaces/config.interface.ts:23
The pagination driver to use
pagination?
Section titled “pagination?”
optionalpagination?:PaginationModeEnum
Defined in: src/lib/interfaces/config.interface.ts:29
Wire-level pagination mechanism. Defaults to PaginationModeEnum.QUERY
when omitted. Currently honoured only by the PostgREST driver; other
drivers ignore it.
request?
Section titled “request?”
optionalrequest?:IQueryBuilderConfig
Defined in: src/lib/interfaces/config.interface.ts:31
Custom key names for request query parameters
response?
Section titled “response?”
optionalresponse?:IPaginationConfig
Defined in: src/lib/interfaces/config.interface.ts:33
Custom key names for response field mapping