ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Teamโ€ข2y agoโ€ข
1 reply
Jakesdoc

Generate relational select types

In prisma, you can do something like
Prisma.GetUserPayload<{include: {posts: true}}>
Prisma.GetUserPayload<{include: {posts: true}}>
and that will give you the type of the user and include the posts. Is there something like this in drizzle?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

types from nested relational queries
Drizzle TeamDTDrizzle Team / help
3y ago
Typescript types for relational queries with neon db
Drizzle TeamDTDrizzle Team / help
3y ago
Help with types relational query function
Drizzle TeamDTDrizzle Team / help
3y ago
Relational queries result types are not working
Drizzle TeamDTDrizzle Team / help
3y ago