© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago
sevenwestonroads

createSelectSchema & createInsertSchema does not infer array properly

Hey there,
I have a table with an array of text
text('col_name').array()

The issue? Well when I try to call my
drizzle-zod
drizzle-zod
create and insert schemas, TS does not understand and tell my the
col_name
col_name
is a
string
string
instead of
string()
string()


Any idea on how to solve this?
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

createInsertSchema & createSelectSchema difference
Drizzle TeamDTDrizzle Team / help
3y ago
Psql Array of text and `createSelectSchema`, `createInsertSchema`
Drizzle TeamDTDrizzle Team / help
3y ago
createInsertSchema does not infer notNull() correclty?
Drizzle TeamDTDrizzle Team / help
3y ago
createInsertSchema fails to infer
Drizzle TeamDTDrizzle Team / help
8mo ago