Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] scope integration in Sequelize adapter #299

Open
DenisFerrero opened this issue Dec 1, 2021 · 0 comments
Open

[FR] scope integration in Sequelize adapter #299

DenisFerrero opened this issue Dec 1, 2021 · 0 comments

Comments

@DenisFerrero
Copy link
Contributor

In the Sequelize adapter would be really useful the possibility to call the models scopes in the list and get action by calling the scopes using the params. For example when making a call pass these params:

{
  scopes: [
    'roles', 'auths',
    { name: 'not', params: [ [1,2,3,4] ] }
  ];
}

This way it's possible to use normal scopes (object defined) and also function defined ones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant