# assignMetadata

**Kind:** Function

**Source:** [`packages/common/decorators/http/route-params.decorator.ts`](https://github.com/nestjs/nest/blob/master/packages/common/decorators/http/route-params.decorator.ts#L30)

**Part of:** [Common](subsystem-packages-common)

## Signature

```ts
function assignMetadata(args: TArgs, paramtype: TParamtype, index: number, data: ParamData, pipes: (Type<PipeTransform> | PipeTransform)[])
```

## Parameters

| Name | Type |
|---|---|
| `args` | `TArgs` |
| `paramtype` | `TParamtype` |
| `index` | `number` |
| `data` | `ParamData` |
| `pipes` | `(Type<PipeTransform> | PipeTransform)[]` |

## Used by

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

### Imported by (2)

- `createRpcParamDecorator` — `packages/microservices/utils/param.utils.ts`:8
- `createWsParamDecorator` — `packages/websockets/utils/param.utils.ts`:8
