Global Filter Middleware on queries

Hey, is there a way to globally filter data on selected tables without writing a where clause on each query? For example; On tables that have a tenantId, I want to write a global filter that applies to these tables, "where: (x, { eq }) => eq(x.tenantId, tenantId)," such that when a user queries those tables, the global filter is added globally to that query.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server