Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
can you Infer relations? - Drizzle Team
DT
Drizzle Team
โข
3y ago
โข
3 replies
Suji
can you Infer relations?
im really loving how drizzle plays well with relations
, but im wondering is there a way to get types for relations
?
in prisma you can use
Prisma.YourModelGetPayload<{}>
Prisma.YourModelGetPayload<{}>
to generate a type with relations
, is this possible with infermodel
?
i tired the most obvious way and that didnt work
InferModel<typeof userRelations>;
InferModel<typeof userRelations>;
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
infer model with relations
DT
Drizzle Team / help
3y ago
How do you infer the type of a relations query?
DT
Drizzle Team / help
3y ago
Infer typescript type from table with relations
DT
Drizzle Team / help
2y ago
Can't infer relationship one-to-one
DT
Drizzle Team / help
2y ago