context
Reads the call itself — method, type, path, id, service — or the context as a whole, rather than one of its payloads.
| Name | Category | Description |
|---|---|---|
debug | hooks | Logs the current hook context to the console for debugging purposes. Displays timestamp, service path, method, type, id, data, query, result, and any additional param fields you specify. |
checkContext | utils | Validates that the hook context matches the expected type(s) and method(s). Throws an error if the context is invalid, preventing hooks from running in unsupported configurations. Typically used internally by other hooks. Also narrows the context type based on the passed options. The options form takes the same criteria as |
contextToJson | utils | Converts a FeathersJS HookContext to a plain JSON object by calling |
isContext | predicates | Returns a predicate that checks whether the hook context matches the given criteria.
You can filter by |
See all tags for the full vocabulary.
