Connect Loopback to various Data Sources
Go to file
Peter Bouda 6bd9fca080 Fix bug in utils uniq function (#1526)
The uniq function does currently not work when the database is mongodb.
In the case of mongodb, the function will receive an array of bson
object of bson type ObjectID. The indexOf function will return a
different index, even if the mongodb ID is the same, as it is wrapped
in the ObjectID. This commit first transforms any ObjectID in the array
to a string representation. We can then use indexOf to check for
uniqueness.
2017-12-04 15:39:58 -05:00
.github Add stalebot configuration 2017-08-22 15:12:54 -04:00
docs Fix for issue #774 2015-11-24 16:50:41 +05:30
examples Upgrade eslint-config, fix new violations 2017-02-01 12:45:56 +01:00
intl translation return for Q4 drop1 2017-10-09 17:16:00 +08:00
lib Fix bug in utils uniq function (#1526) 2017-12-04 15:39:58 -05:00
support Fix manually 2016-08-22 19:20:12 -04:00
test Fix bug in utils uniq function (#1526) 2017-12-04 15:39:58 -05:00
.editorconfig minor formatting issues (trailing spaces and such) and .editorconfig 2015-02-03 13:08:23 +03:00
.eslintignore Add eslint as "npm run lint" and "posttest" hook 2016-04-05 15:25:34 +02:00
.eslintrc Disable `strict` for a few files 2016-08-26 09:54:31 -04:00
.gitignore Add nyc coverage, report data to coveralls.io 2017-08-30 14:17:27 +02:00
.gitmodules Remove unused support/ files 2016-04-05 15:25:34 +02:00
.npmignore kvao: implement key filter 2016-08-18 09:59:56 +02:00
.nycrc Add nyc coverage, report data to coveralls.io 2017-08-30 14:17:27 +02:00
.travis.yml Add node8 support for travis 2017-08-30 09:27:05 -04:00
CHANGES.md 3.13.0 2017-10-17 23:24:07 -04:00
CODEOWNERS CODEOWNERS: move @lehni to Alumni section 2017-10-19 10:48:41 +02:00
CONTRIBUTING.md Add instructions for running the tests (#1330) 2017-04-17 11:14:00 -04:00
LICENSE chore:update license (#1521) 2017-11-13 12:50:36 -05:00
NOTICE Add NOTICE 2015-07-18 19:44:46 -07:00
README.md 📖 Typo on README.md (#1517) 2017-10-30 22:52:38 -04:00
docs.json docs: add DateString definition 2017-05-02 18:51:56 -04:00
index.js Fix manually 2016-08-22 19:20:12 -04:00
package.json Fix bug in utils uniq function (#1526) 2017-12-04 15:39:58 -05:00

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.

Supported versions

Current Long Term Support
3.x 2.x

Learn more about our LTS plan in the LoopBack documentation.

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 LoopBack documentation.

For information on data source connectors, see Connecting models to data sources.