Skip to content

API reference / @chanx-js/nestjs / Payload

Function: Payload() ​

Call Signature ​

ts
function Payload(...pipes): ParameterDecorator;

Defined in: packages/nestjs/src/decorators.ts:119

The message's payload, or one of its properties, through any pipes, as @MessageBody(): @Payload(), @Payload('text'), @Payload(new ValidationPipe()).

Parameters ​

ParameterType
...pipesPipe[]

Returns ​

ParameterDecorator

Call Signature ​

ts
function Payload(property, ...pipes): ParameterDecorator;

Defined in: packages/nestjs/src/decorators.ts:120

The message's payload, or one of its properties, through any pipes, as @MessageBody(): @Payload(), @Payload('text'), @Payload(new ValidationPipe()).

Parameters ​

ParameterType
propertystring
...pipesPipe[]

Returns ​

ParameterDecorator

MIT licensed