Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ Restrict a hook to run for certain methods and method types.
- `{String | Array< String >} [ methods ]`
- `{String} [ label ]`

| Argument | Type | Default | Description |
| Argument | Type | Default | Description | |
| --------- | :------: | ---------------- | --------------------------------- | --------------------------------------------------------------- |
| `context` | `Object` | | The hook context. |
| `context` | `Object` | | The hook context. | |
| `type` | `String | Array< String >` | all types | The service type allowed - before, after, error. |
| `methods` | `String | Array< String >` | all methods | The service methods allowed - find, get, update, patch, remove. |
| `label` | `String` | `'anonymous'` | Name of hook to use with `throw`. |
| `label` | `String` | `'anonymous'` | Name of hook to use with `throw`. | |

- **Example**

Expand Down