pg-search-sequelize icon indicating copy to clipboard operation
pg-search-sequelize copied to clipboard

Truble using scopes

Open eigenmannmartin opened this issue 8 years ago • 1 comments

Is there e possibility to define scopes like this:

await models.MaterializedModel.scope('active').search(query);

and more importantly, I wish to use a dynamic scope like this:

await models.MaterializedModel.scope({ method: ['visibleFor', session] }).search(query);

Thank you for your time

eigenmannmartin avatar May 16 '17 11:05 eigenmannmartin

This feature doesn't exist as of yet. But It's the next one on the list. Expect it to be released very soon. I'll update the issue once it is add :)

mujz avatar May 16 '17 19:05 mujz