438df25d8e
Modify ValidationError constructor to include the model name and a human-readable representation of the validation errors (messages) in the error message. Before this change, the message was pointing the reader to `err.details`. Most frameworks (e.g. express, mocha) log only `err.message` but not other error properties, thus the logs were rather unhelpful. Example of the new error message: The `User` instance is not valid. Details: `name` can't be blank. |
||
---|---|---|
docs | ||
examples | ||
lib | ||
support | ||
test | ||
.gitignore | ||
.gitmodules | ||
.jshintignore | ||
.npmignore | ||
.travis.yml | ||
LICENSE | ||
Makefile | ||
README.md | ||
docs.json | ||
index.js | ||
package.json |
README.md
LoopBack DataSource Juggler
LoopBack DataSource Juggler is an ORM that provides a common set of interfaces for interacting with databases, REST APIs, and other data sources. It was initially forked from JugglingDB.
For full documentation, see the official StrongLoop documentation:
Installation
npm install loopback-datasource-juggler
Also install the appropriated connector, for example for mongodb:
npm install loopback-connector-mongodb
See StrongLoop Suite Documentation for up-to-date list of connectors supported.