Skip to content

Allow boot scripts to return promise instead of accepting a callback arg #192

@bajtos

Description

@bajtos

I'd like to write boot scripts using Promise-based API provided by loopback models:

module.exports = function(app) {
  return app.models.Product.create({ name: 'pen' });
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions