Hi all! I have a Message model that implements cus...
# orm-help
k
Hi all! I have a Message model that implements custom authorization logic. If a Graphql endpoint accesses that message, I can test to see whether the viewer has permission or not. Suppose I want to list all messages a user can see. I can query with filters for the viewer and union all results. However, this leads to repetition of logic code (Same logic 2 times: In filtering for list query and in individual object query). Is it possible to to this in a better way?