Skip to content
qubeejs/angular
3.8/API/IConfig

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.

const config: IConfig = {
driver: DriverEnum.NESTJS,
request: { filters: 'filter', sort: 'sortBy' },
response: { data: 'data' }
};

driver: DriverEnum

Defined in: src/lib/interfaces/config.interface.ts:23

The pagination driver to use


optional pagination?: 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.


optional request?: IQueryBuilderConfig

Defined in: src/lib/interfaces/config.interface.ts:31

Custom key names for request query parameters


optional response?: IPaginationConfig

Defined in: src/lib/interfaces/config.interface.ts:33

Custom key names for response field mapping