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

---
```ts
$createsOrUpdatesResource(
  context,
  entity,
  resourceType): void
```

## Parameters

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

## Returns

`void`
