Connect Loopback to various Data Sources
Go to file
Heath Morrison c62ba21307 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 15:11:20 +01:00
docs Fix for issue #774 2015-11-24 16:50:41 +05:30
examples Back-port fixes for linter errors from master 2016-12-06 10:47:27 +01:00
intl Update ko translation file 2016-12-07 12:01:59 -05:00
lib Coerce array-like objects into arrays 2017-01-10 15:11:20 +01:00
support Backport ESLint from master 2016-05-20 17:35:23 +02:00
test Coerce array-like objects into arrays 2017-01-10 15:11:20 +01:00
.editorconfig minor formatting issues (trailing spaces and such) and .editorconfig 2015-02-03 13:08:23 +03:00
.eslintignore Backport ESLint from master 2016-05-20 17:35:23 +02:00
.eslintrc update eslintrc according to master branch 2016-10-19 17:01:49 -04:00
.gitignore Add globalization strings 2016-09-20 15:18:49 -04:00
.gitmodules Added Makefile 2011-11-05 17:54:52 +07:00
.jshintignore Add .jshintignore 2013-11-21 19:05:19 +01:00
.npmignore kvao: implement key filter 2016-08-18 10:30:55 +02:00
.travis.yml travis: add v4, v6, drop io.js 2016-05-23 11:24:28 +02:00
CHANGES.md 2.53.1 2016-12-21 10:41:36 +01:00
CONTRIBUTING.md Fix bad CLA URL in CONTRIBUTING.md 2014-12-29 08:27:46 -08:00
LICENSE Relicense as MIT only 2016-04-06 16:50:02 +02:00
NOTICE Add NOTICE 2015-07-18 19:44:46 -07:00
README.md Update README.md 2014-12-01 13:22:24 -08:00
docs.json Enable docs 2015-05-18 09:00:49 -07:00
index.js Fix manually 2016-10-19 17:35:26 -04:00
package.json Merge pull request #1199 from strongloop/release/2.x-lts 2016-12-21 10:45:38 +01:00

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: Connecting models to data sources

For information on creating data sources programmatically, see Advanced topics: data sources.

Installation

npm install loopback-datasource-juggler

Also install the appropriated connector, for example for mongodb:

npm install loopback-connector-mongodb

See StrongLoop Documentation for more information.