You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
models.User.addScope('deleted', {
where: {
delete: true
}
}
let result = models.User.scope('deleted').paginate();
The result will contain all users as the paginate function ignores the assigned scope since it is called on the parent model instead of the scoped instance.
Pagination is forced to the default model. Any attempt to scope prior to pagination is ignored.
See PR #45
The text was updated successfully, but these errors were encountered: