pg-search-sequelize
pg-search-sequelize copied to clipboard
Truble using scopes
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
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 :)