Class: ODataQueryPipe
Defined in: packages/core/src/query/odata-query.pipe.ts:26
ODataQueryPipe — NestJS PipeTransform that converts raw Express query params (req.query as Record<string, string>) into a typed, validated ODataQuery.
Per threat model T-03-01: validates all $filter/$select/$orderby property references against EdmRegistry. Unknown properties throw ODataValidationError.
Per threat model T-03-03: clamps $top to maxTop from ODataModuleResolvedOptions.
Zero TypeORM imports — per PKG-01 architecture constraint.
Implements
PipeTransform<Record<string,string>,ODataQuery>
Constructors
Constructor
new ODataQueryPipe(
edmRegistry,options):ODataQueryPipe
Defined in: packages/core/src/query/odata-query.pipe.ts:27
Parameters
edmRegistry
options
Returns
ODataQueryPipe
Methods
transform()
transform(
value,metadata):ODataQuery
Defined in: packages/core/src/query/odata-query.pipe.ts:32
Method to implement a custom pipe. Called with two parameters
Parameters
value
Record<string, string>
argument before it is received by route handler method
metadata
ArgumentMetadata
contains metadata about the value
Returns
Implementation of
PipeTransform.transform