Skip to content

Provide consistent hook APIs for methods mixed into model classes from connectors #367

Closed
@raymondfeng

Description

@raymondfeng

When a LoopBack model is attached a data source, the underlying connector will mix in a list of methods on the model class. If the connector is backed by one of the databases, the methods are the CRUD operations. At the moment, the juggler only has hard-coded before/after hooks that have serious issues:

  1. The before/after hook only allows one handler
  2. The triggering of hooks are hard-coded in the lib/dao.js
  3. Not all paths are covered

See open issues or pull requests:

Tasks:

Out of scope (follow-up):

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions