# Ctx

**Kind:** Constant

**Source:** [`packages/microservices/decorators/ctx.decorator.ts`](https://github.com/nestjs/nest/blob/master/packages/microservices/decorators/ctx.decorator.ts#L4)

**Part of:** [Microservices](subsystem-packages-microservices)

## Definition

```ts
() => ParameterDecorator
```

## Value

```ts
createRpcParamDecorator(
  RpcParamtype.CONTEXT,
)
```

## Used by

5 references from 5 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (5)

- `MqttController` — `integration/microservices/src/mqtt/mqtt.controller.ts`:16
- `NatsController` — `integration/microservices/src/nats/nats.controller.ts`:19
- `RMQFanoutExchangeConsumerController` — `integration/microservices/src/rmq/fanout-exchange-consumer-rmq.controller.ts`:4
- `RMQController` — `integration/microservices/src/rmq/rmq.controller.ts`:16
- `RMQTopicExchangeController` — `integration/microservices/src/rmq/topic-exchange-rmq.controller.ts`:12
