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