Skip to content
API/QubeeConfig

QubeeConfig

src/types/qubee-config.type.tstype

Options for createQubee.

Property Type Description
baseUrl string Prepended to every generated URI, as QueryBuilder.setBaseUrl() would — https://example.com/api turns /articles?… into https://example.com/api/articles?…. A trailing slash makes no difference. Omit it for root-relative URIs. reset() clears it.
driver DriverDefinition The driver to use, as its exported definition — STRAPI_DRIVER, say. A definition rather than an id, deliberately: it keeps createQubee from reaching into DRIVERS, which would bundle every driver into every consumer. To choose at runtime, import the registry yourself and pass DRIVERS[id], so the cost is visible at your own import site.
pagination PaginationModeEnum Wire-level pagination mechanism. Only PostgREST honours it today; every other driver ignores the setting.
request QueryBuilderConfig Override the query parameter names the request strategy emits.
response PaginationConfig Override where the response strategy looks for pagination metadata.