loopback-datasource-juggler/test
Miroslav Bajtoš 9fd4c00225 Add model setting "persistUndefinedAsNull"
When the setting "persistUndefinedAsNull" is true,
the model will use `null` instead of `undefined` in
all property values.

 - Known optional model properties are set to `null` when no value
   was provided.

 - When setting model properties, `undefined` is always converted
   to `null`. This applies to both known (model-defined) properties
   and additional (custom, dynamic) properties.

 - The instance method `toObject()` converts `undefined` to `null` too.
   Because `toJSON()` calls `toObject()` under the hood, the change
   applies to `toJSON()` too.
2015-03-27 18:25:26 +01:00
..
CustomTypeForeignKey.test.js Fix the test case 2015-03-10 21:26:36 -07:00
async-observer.test.js ModelBaseClass: promise mode for notifyObserversOf 2015-02-17 18:19:21 +01:00
basic-querying.test.js Memory connector returns updated records count 2015-03-19 15:40:14 -07:00
common.batch.js test: undefined property values are preserved 2015-02-04 09:08:28 +01:00
common_test.js add a flag to callback of findOrCreate to indicate find or create 2014-12-25 22:19:15 +08:00
crud-with-options.test.js Fix `deleteById(id)` and other test failures 2015-02-13 09:34:40 -08:00
datatype.test.js Add model setting "persistUndefinedAsNull" 2015-03-27 18:25:26 +01:00
default-scope.test.js fix default include in default scope fails findById 2014-12-11 15:14:35 +08:00
defaults.test.js Update to `should` to the latest version 4.6.3 2015-02-03 11:44:15 +01:00
events.js Fix `deleteById(id)` and other test failures 2015-02-13 09:34:40 -08:00
geo.test.js Fix the floating number comparison 2015-01-05 10:53:26 -08:00
hooks.test.js Intent-based hooks for persistence 2015-01-29 08:43:52 +01:00
include.test.js Change equal to eql to support mongodb ObjectID 2015-02-08 11:14:51 -08:00
init.js ModelBaseClass: promise mode for notifyObserversOf 2015-02-17 18:19:21 +01:00
introspection.test.js Tidy up model building from data sources 2014-09-12 14:25:35 -07:00
json.test.js Reformat the code 2014-01-24 09:09:53 -08:00
loopback-data.test.js Reformat the code 2014-01-24 09:09:53 -08:00
loopback-dl.test.js Allow submodel to hide base properties 2015-03-03 10:27:22 -08:00
manipulation.test.js Clean up delete and update tests 2015-03-24 21:30:40 -07:00
memory.test.js add tests for between in memory connector 2015-03-16 18:26:33 +01:00
mixins.test.js fix #429 Multiple Models can't mixin same class 2015-03-11 16:08:50 +08:00
model-definition.test.js Merge pull request #400 from chrene/protected 2015-02-02 09:04:51 -08:00
performance.coffee Reformat the code 2014-01-24 09:09:53 -08:00
persistence-hooks.suite.js Add ctx.isNewInstance for "save" hooks 2015-03-19 18:05:24 +01:00
relations.test.js Properly support embedsMany destroyAll 2015-03-24 15:39:55 +01:00
schema.test.js Remove workaround for perfomance degradation 2015-02-10 13:28:47 +03:00
scope.test.js Implement scope.findOne 2015-03-21 13:44:06 +01:00
spec_helper.js Reformat the code 2014-01-24 09:09:53 -08:00
test1-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
test2-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
transient.test.js Remove legacy Schema references 2014-09-04 18:01:04 +02:00
util.test.js Add strict flag to sortObjectsByIds 2014-08-15 19:47:12 +02:00
validations.test.js Fixed nullCheck in validations to correct behavior when dealing with undefined attributes 2015-01-27 22:18:47 +00:00