Connect Loopback to various Data Sources
Go to file
Heath Morrison 2377792c22 Coerce array-like objects into arrays
The query-string parser used by express
https://github.com/ljharb/qs#parsing-arrays
limits the size of arrays that are created from query strings to 20
items. Arrays larger than that are converted to objects using numeric
indices.

This commit fixes the coercion algorithm used by queries to
treat number-indexed objects as arrays. We still maintain a strict
understanding of an "array-like object" to limit the opportunity for
subtle bugs. In particular, the presence of non-index keys is an
indication that the object was not intended to be interpreted as
an array.
2017-01-10 14:46:41 +01:00
.github Replicate .github from loopback repo 2016-12-09 17:22:45 -08:00
docs Fix for issue #774 2015-11-24 16:50:41 +05:30
examples Upgrade eslint & config to latest 2016-12-05 15:14:09 +01:00
intl Update ko translation file 2016-12-07 11:50:40 -05:00
lib Coerce array-like objects into arrays 2017-01-10 14:46:41 +01:00
support Fix manually 2016-08-22 19:20:12 -04:00
test Coerce array-like objects into arrays 2017-01-10 14:46:41 +01: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 translation files 2016-09-20 13:34:44 -04: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
.travis.yml Drop support for Node v0.10 and v0.12 2016-11-15 14:21:02 +01:00
CHANGES.md 3.1.1 2016-12-21 16:04:41 +01:00
CONTRIBUTING.md Update URLs in CONTRIBUTING.md (#1002) 2016-07-13 17:53:36 -07:00
LICENSE Relicense as MIT only 2016-04-01 15:17:10 -07:00
NOTICE Add NOTICE 2015-07-18 19:44:46 -07:00
README.md Update package.json for LB3 release 2016-12-21 10:44:55 +01:00
docs.json Enable docs 2015-05-18 09:00:49 -07:00
index.js Fix manually 2016-08-22 19:20:12 -04:00
package.json Upgrade eslint-config to 7.x 2017-01-06 13:33:54 +01: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 docs.

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.

Creating data sources programmatically

See Advanced topics: data sources.