Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Teamβ€’3y agoβ€’
11 replies
Dbeg

Infer type for relational query

Is there anyway to infer the type of a relational queries result? For example if I have a user who makes posts which has comments. I have a relational query which gets me all my users, their posts and their comments nested. Is there a way to infer that type? Currently constructing the type myself from the tables in the schema.
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

Infer return type for relational query with pagination
Drizzle TeamDTDrizzle Team / help
3y ago
Proper type for relational query
Drizzle TeamDTDrizzle Team / help
11mo ago
Doent infer type in Callback syntax for query
Drizzle TeamDTDrizzle Team / help
3y ago
Getting Type Error With Drizzle Relational Query
Drizzle TeamDTDrizzle Team / help
2mo ago