Drizzle client nested schemas

Is there a way to nest schemas within the Drizzle Queries? I have my schemas multiple files in sub directories, and I export them in groups.
export * as paths from './schema/paths';
export * as reports from './schema/reports';
export * as auth from './schema/auth';
export * as paths from './schema/paths';
export * as reports from './schema/reports';
export * as auth from './schema/auth';
This helps with organization and works with the select and insert, but to use queries I have to spread my schema when passing it to drizzle. Ideally, I'd be able to query users like
await client.query.auth.users.findMany()
await client.query.auth.users.findMany()
vs.
await client.query.users.findMany()
await client.query.users.findMany()
Is this possible in drizzle?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server