Closed
Description
Judging by the recent discussions in GitHub issues, the current minimal documentation does not make it clear how to correctly use the hooks and why they are designed in a seemingly unintuitive way.
The goal of this task is to write down all knowledge that's in Miroslav's head at the moment, add information from comments in the issues linked below, and beef up the doc page Operation hooks.
A list of pain-points can be found here:
Related issues:
- updateAttributes operational hooks: use instance, not where loopbackio/loopback-datasource-juggler#481
- Operational hook 'after delete' should receive id(s) loopbackio/loopback-datasource-juggler#474
- Fix #481 and #474 loopbackio/loopback-datasource-juggler#483
- Shared state for hooks invoked for a single operation loopbackio/loopback-datasource-juggler#484
- https://github.com/strongloop/loopback-datasource-juggler/pull/488/files#r25886292