Possibility to add scopes to resolvers #316
Unanswered
dberardo-com
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I think what you are looking for is the authorize decorator |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to pre-filter (scope) records in the cRUD resolvers before all other filters , aggregates, etc. gets applied.
Is this possible out of the box?
In particular I have e.g. some records in the DB and I would like the current user to only be able to see their own records (e.g. record.ownerId == userId) before applying filtering.
I know the concept of guards but this is not what I am looking for. I want to first reduce the search base of records for the service and then apply the transformations.
Same goes for updates deletes etc
Beta Was this translation helpful? Give feedback.
All reactions