-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
RepositoryIssues related to @loopback/repository packageIssues related to @loopback/repository packagefeaturefeature parityspikestale
Description
In LoopBack 3.x, we have a concept of Operation Hooks allowing models to register handlers for common events: access, before/after save, before/after delete, load/persist.
We should provide similar functionality in LoopBack 4 too.
See also the discussion in #1857 which triggered this feature request.
/cc @vvdwivedi @David-Mulder @marioestradarosa @raymondfeng
Acceptance criteria
- A draft pull request that:
- finds out the minimum infrastructure and what other use cases would use this hook
- see if use cases can be handled by life cycle observers(for data events) or interceptors
- high level proposal for the hooks in the repository level
- finds out that which kind of hooks are more suitable for LB4: a set of hooks that is universal for all possible implementations of a given repository interface, or the hooks coupled with a particular repository implementation. ( e.g different sets of hooks for key/value and CRUD)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
RepositoryIssues related to @loopback/repository packageIssues related to @loopback/repository packagefeaturefeature parityspikestale