© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
2 replies
xamarot

Omit fields on "$inferSelect"?

Let's say I have a table with 5 columns, I want to do

type TableType = typeof theTable.$inferSelect;
type TableType = typeof theTable.$inferSelect;


but omit some fields. How do I do that?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

View No $inferSelect
Drizzle TeamDTDrizzle Team / help
17mo ago
Type Hinting $inferSelect
Drizzle TeamDTDrizzle Team / help
2y ago
.$inferSelect for relations
Drizzle TeamDTDrizzle Team / help
3y ago
Omit properties when using InferInsertModel and InferSelectModel to create Type defintion
Drizzle TeamDTDrizzle Team / help
2y ago