---
jsApi: true
title: "[F] $collectionAction"

---
```ts
$collectionAction(
   context, 
   entity, 
   resourceType, 
   name?): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `DecoratorContext` |
| `entity` | `Operation` |
| `resourceType` | `Model` |
| `name`? | `string` |

## Returns

`void`
