Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to get InferModel to work with Relation model? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
1 reply
foreach2845
How to get InferModel to work with Relation model?
Is there a way to get the infer type for a relation model
? eg
:
type User
= InferModel
<typeof users
,
"select
"
>
;
type UserWithPosts
= InferModel
<typeof users
,
{ posts
: true
}
,
"select
"
>
;
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
insert with InferModel not working
DT
Drizzle Team / help
3y ago
InferModel including relations?
DT
Drizzle Team / help
3y ago
How to get where relation has no rows
DT
Drizzle Team / help
3y ago
how to get auto increment to work sqlite
DT
Drizzle Team / help
2y ago