Skip to content

Promisify relation/scope methods in juggler #2709

Closed
@sundeepgupta

Description

@sundeepgupta

If I define a model with a custom scope like this:

  "scopes": {
    "active": {
      "where": {
          "status": "active"
      }
    }
  }

When I call it from client code MyModel.active(), this does not return a promise, it requires a callback argument.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions