Skip to content
API/StrategyCapabilities

StrategyCapabilities

src/types/strategy-capabilities.type.tstype

Capability flags declared by an IRequestStrategy

Single source of truth for what a driver supports. Replaces the inline DriverEnum allowlists previously scattered across NgQubeeService’s _assertDriver(...) call sites.

Adding a new driver means defining one of these objects on the new strategy class — NgQubeeService does not need to be touched.

Property Type Description
embedded boolean Embedded-resource selection inside select (PostgREST select=col,rel(col1))
fields boolean Per-model field selection (e.g. JSON:API fields[type]=col1,col2)
filters boolean Simple key-value filters (e.g. filter.status=active)
includes boolean Related-resource includes (e.g. JSON:API/Spatie include=author)
operatorFilters boolean Filters with explicit operators (e.g. NestJS $gte, PostgREST gte.)
search boolean Global full-text search via a single term (NestJS search=…)
select boolean Flat column-list selection (NestJS / PostgREST select=col1,col2)
sort boolean Sort ordering on one or more fields