validateNumericality didn't test if attributes value is a number only if it's type is number. Further nullCheck had a wrong testing order. It first checked if value is null, later if blank. Also null check only used two equals, not three. We don't use blank() anymore, testing if variable is undefined should be fine too. Added tests covering validateNumericality. |
||
---|---|---|
docs | ||
examples | ||
intl | ||
lib | ||
support | ||
test | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.gitmodules | ||
.npmignore | ||
.travis.yml | ||
CHANGES.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
NOTICE | ||
README.md | ||
docs.json | ||
index.js | ||
package.json |
README.md
loopback-datasource-juggler
An ORM/ODM that provides a common set of interfaces for interacting with databases, REST APIs, and other types of data sources. It was originally forked from JugglingDB.
Usage
Install Juggler:
npm install loopback-datasource-juggler
Then install a connector:
npm install loopback-connector-mongodb // in this case, the mongodb connector
Documentation
See the official documentation.