FixerUG
FixerUG
DTDrizzle Team
Created by FixerUG on 3/27/2024 in #help
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.
1 replies