Connect Loopback to various Data Sources
Go to file
Dimitris Halatsis ea2266e453 Persist changes on parent for embedsOne
Allow direct save of changes on embedded model to be persisted on
parent document.

    Person.embedsOne(Address);
    Person.findById(someId)
      .then(function(p){
        var address = p.addressItem();
        address.street = 'new street'
        // This will now persist changes on parent document
        return address.save();
      })

[forward-port of #949]
2016-06-07 17:24:59 +02:00
docs Fix for issue #774 2015-11-24 16:50:41 +05:30
examples eslint config 2.0 + remove extra empty lines 2016-04-19 16:11:43 +02:00
lib Persist changes on parent for embedsOne 2016-06-07 17:24:59 +02:00
support eslint config 2.0 + remove extra empty lines 2016-04-19 16:11:43 +02:00
test Persist changes on parent for embedsOne 2016-06-07 17:24:59 +02: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 Add eslint as "npm run lint" and "posttest" hook 2016-04-05 15:25:34 +02:00
.gitignore Add a file option for the memeory connector to persist data 2014-01-29 12:04:09 -08:00
.gitmodules Remove unused support/ files 2016-04-05 15:25:34 +02:00
.npmignore Ignore npm-debug.log 2013-03-30 21:10:20 +04:00
.travis.yml travis: add v4, v6, drop io.js 2016-05-23 11:13:40 +02:00
3.0-RELEASE-NOTES.md fix error handling when applying undefined mixins 2016-05-31 12:24:04 -04:00
CHANGES.md 3.0.0-alpha.4 2016-04-07 09:21:38 +02: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-01 15:17:10 -07:00
NOTICE Add NOTICE 2015-07-18 19:44:46 -07:00
README.md Update README.md 2016-01-22 14:10:01 -08:00
docs.json Enable docs 2015-05-18 09:00:49 -07:00
index.js eslint --fix 2016-04-05 15:25:34 +02:00
package.json Set ESLint as devdep 2016-05-10 12:38:30 -07: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.

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.