Skip to content

Truble using scopes #2

@eigenmannmartin

Description

@eigenmannmartin

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions