-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Comment:1
LoopBack methods defined for related models cannot be automatically promisified. We are working on adding a native Promise API to all LoopBack methods, see strongloop/loopback#418.The current master branch of loopback-datasource-juggler provides Promise API for all CRUD model methods, including the methods created for related models. See loopbackio/loopback-datasource-juggler#451 and loopbackio/loopback-datasource-juggler#452.
Until we make a new release, you can install the new version by running the following command in your project: npm install strongloop/loopback-datasource-juggler.
If you are running on Node.js version 0.10, then you need to add the following line to the top of your main server file to tell LoopBack which Promise implementation to use:
global.Promise = require('bluebird');Comment:2
Miroslav has just released loopback-datasource-juggler@2.24.0 that provides the functionality described in my previous comment.