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

Function Body

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

Source from the content-addressed store, hash-verified

500 * @publicApi
501 */
502export function Body(
503 property?: string | (Type<PipeTransform> | PipeTransform),
504 ...pipes: (Type<PipeTransform> | PipeTransform)[]
505): ParameterDecorator {
506 return createPipesRouteParamDecorator(RouteParamtypes.BODY)(
507 property,
508 ...pipes,
509 );
510}
511
512/**
513 * Route handler parameter decorator. Extracts the `rawBody` Buffer

Callers 15

callbackMethod · 0.90
testMethod · 0.90
testUsingArrayMethod · 0.90
ssePostMethod · 0.90
ssePostPromiseDelayedMethod · 0.90
createMethod · 0.90
updateMethod · 0.90
createMethod · 0.90
updateMethod · 0.90
createMethod · 0.90
createMethod · 0.90
updateMethod · 0.90

Calls 1

Tested by 3

callbackMethod · 0.72
testMethod · 0.72
testUsingArrayMethod · 0.72