© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•5mo ago•
1 reply
SkepticMystic

Typescript util types to show `with` relations

Hi there

Are there some TS util types to show the result of a query using
with
with
relations?
For example:
With<User, 'organization'>
With<User, 'organization'>
is equivalent to
(User & { organization: Organization })[]
(User & { organization: Organization })[]
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

Supabase generated typescript types + relations
Drizzle TeamDTDrizzle Team / help
2y ago
Invalid types with recursive relations
Drizzle TeamDTDrizzle Team / help
2w ago
Infer typescript type from table with relations
Drizzle TeamDTDrizzle Team / help
2y ago
Inferred Types not picking up Relations
Drizzle TeamDTDrizzle Team / help
3y ago