I am working on a multi tenant app, so I need some relations to be filtered by tentant.
So some of them will have a
tenant_id and right now I have a method in the relation
for_tenant that I need to chain to all calls.
Is there a way to make this filtering default? so that the tenant filtering applies to all queries for a relation. Something like
dataset but the
tenant_id is request scoped.