MCPcopy
hub / github.com/nestjs/nest / Query

Function Query

packages/common/decorators/http/route-params.decorator.ts:408–416  ·  view source on GitHub ↗
(
  property?: string | (Type<PipeTransform> | PipeTransform),
  ...pipes: (Type<PipeTransform> | PipeTransform)[]
)

Source from the content-addressed store, hash-verified

406 * @publicApi
407 */
408export function Query(
409 property?: string | (Type<PipeTransform> | PipeTransform),
410 ...pipes: (Type<PipeTransform> | PipeTransform)[]
411): ParameterDecorator {
412 return createPipesRouteParamDecorator(RouteParamtypes.QUERY)(
413 property,
414 ...pipes,
415 );
416}
417
418/**
419 * Route handler parameter decorator. Extracts the entire `body`

Callers 15

testMethod · 0.90
testUsingArrayMethod · 0.90
sseWithValidatedQueryMethod · 0.90
sseBurstMethod · 0.90
callMethod · 0.90
serializeErrorMethod · 0.90
serializeErrorMethod · 0.90
callMethod · 0.90

Calls 1

Tested by 3

testMethod · 0.72
testUsingArrayMethod · 0.72
[QUERY_VALUE]Method · 0.72