loopback-datasource-juggler/lib
Miroslav Bajtoš 1fd6eff10f Intent-based hooks for persistence
This patch introduces a new API for "intent-based" hooks. These hooks
are not tied to a particular method (e.g. "find" or "update"). Instead,
they are triggered from all methods that execute a particular "intent".

The consumer API is very simple, there is a new method
Model.observe(name, observer), where the observer is function
observer(context, callback).

Observers are inherited by child models and it is possible to register
multiple observers for the same hook.

List of hooks:

 - query
 - before save
 - after save
 - after delete
2015-01-29 08:43:52 +01:00
..
connectors Intent-based hooks for persistence 2015-01-29 08:43:52 +01:00
dao.js Intent-based hooks for persistence 2015-01-29 08:43:52 +01:00
datasource.js Update datasource.js 2015-01-08 15:30:17 -08:00
geo.js Added support for inline parameters like: new GeoPoint(-34, 150) 2014-12-18 10:47:06 -05:00
hooks.js Allow before hooks to pass arguments to next() 2014-07-15 12:51:33 -07:00
include.js Add support for multiple includes that use relation syntax 2014-11-04 20:45:25 -08:00
introspection.js Tidy up model building from data sources 2014-09-12 14:25:35 -07:00
jutil.js Fix the forEach closure 2014-06-06 09:59:57 -07:00
list.js Prevent failure with null in List toObject 2014-08-18 07:28:33 +02:00
mixins.js Clean up the mixin processing 2014-08-08 01:20:57 -07:00
model-builder.js ModelBaseClass: implement async observe/notify 2015-01-29 08:43:50 +01:00
model-definition.js fix id properties should sort by its index 2015-01-21 20:16:34 +08:00
model.js ModelBaseClass: implement async observe/notify 2015-01-29 08:43:50 +01:00
relation-definition.js Supply target to applyProperties function 2015-01-26 19:09:29 +01:00
relations.js Implemented embedsOne 2014-08-20 08:58:08 -07:00
scope.js Extract mergeQuery and setScopeValuesFromWhere 2014-10-09 18:13:40 +02:00
types.js Rewrite the List class for typed array 2014-02-14 10:41:00 -08:00
utils.js Implement include scopes 2014-10-10 12:28:39 +02:00
validations.js Fixed nullCheck in validations to correct behavior when dealing with undefined attributes 2015-01-27 22:18:47 +00:00