loopback-datasource-juggler/lib
Miroslav Bajtoš 3df62444d6 Validate model on updateOrCreate (upsert).
Fix the implementation of updateOrCreate (a.k.a. upsert) to validate
the model before calling the connector.

In order to preserve backwards compatibility, validation errors are
only logged via console.warn by default.

The correct behaviour, where validation errors fail the updateOrCreate
operation, can be enabled via new model setting "validateUpsert".
2015-04-16 09:09:54 +02:00
..
connectors Allow nesting properties to be queried for memory connector 2015-03-27 16:05:12 -07:00
browser.depd.js Deprecate Model hooks 2015-02-27 16:58:24 +01:00
dao.js Validate model on updateOrCreate (upsert). 2015-04-16 09:09:54 +02:00
datasource.js fix foreign key dataType bug 2015-03-11 11:30:40 +08:00
geo.js Added support for inline parameters like: new GeoPoint(-34, 150) 2014-12-18 10:47:06 -05:00
hooks.js Deprecate Model hooks 2015-02-27 16:58:24 +01: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 Remove all usages of lodash. 2015-03-26 09:33:48 +01:00
list.js Return 400 when client provides an incorrect value 2015-02-05 16:58:42 +05:30
mixins.js Clean up the mixin processing 2014-08-08 01:20:57 -07:00
model-builder.js Deprecate property names containing a dot 2015-04-02 09:49:04 +02:00
model-definition.js fix id properties should sort by its index 2015-01-21 20:16:34 +08:00
model.js Add new strict mode "validate" 2015-04-14 08:16:10 +02:00
relation-definition.js Promisify model relation methods 2015-04-07 11:41:07 +02:00
relations.js Implemented embedsOne 2014-08-20 08:58:08 -07:00
scope.js Promisify model relation methods 2015-04-07 11:41:07 +02:00
types.js Rewrite the List class for typed array 2014-02-14 10:41:00 -08:00
utils.js ModelBaseClass: promise mode for notifyObserversOf 2015-02-17 18:19:21 +01:00
validations.js Add new strict mode "validate" 2015-04-14 08:16:10 +02:00