© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
6 replies
Angel

Type for select with relations?

Is it possible to infer select with relations?

Currently im using:
export let user: typeof user.$inferSelect & { profile?: typeof profile.$inferSelect };
export let user: typeof user.$inferSelect & { profile?: typeof profile.$inferSelect };
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Type generation for relations
Drizzle TeamDTDrizzle Team / help
14mo ago
Get type for select query?
Drizzle TeamDTDrizzle Team / help
3y ago
Infer typescript type from table with relations
Drizzle TeamDTDrizzle Team / help
2y ago
Relations not building into type
Drizzle TeamDTDrizzle Team / help
3y ago