Skip to main content

Function: Query()

Query(name?): (target, propertyKey, index) => void

Defined in: service-core/src/decorators/RouteDecorators.ts:319

Injects the value of the specified query parameter with the given name as the value of the decorated argument. If no name is specified the entire request query will be injected.

Parameters

name?

string | undefined

THe name of the query parameter whose value will be injected.

Returns

(target, propertyKey, index) => void