© 2026 Hedgehog Software, LLC

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

refine parameters in createInsertSchema not typed properly

Hi I'm trying to get started with the Drizzle-Zod packages. I've just created a new repo using the hono create script (as per the CJ video on Syntax) installed drizzle and zod dpendencies and copied in the example createSelectSchema from the drizzle-zod docs page. The refine parameters adding min/max to the name and bio fields are giving typescript errors saying they do not exist on ZodType<Buffer, ZodTypeDef, Buffer> when the name and bio fields should be z.string types. What am I doing wrong? here are my dependencies:
"dependencies": {
"drizzle-orm": "^0.39.3",
"drizzle-zod": "^0.7.0",
"hono": "^4.7.2",
"zod": "^3.24.2"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250214.0",
"@types/node": "^22.13.4",
"drizzle-kit": "^0.30.4",
"wrangler": "^3.101.0"
},
"packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af"
Screenshot_2025-02-19_at_08.36.38.jpg
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

refine and createInsertSchema
Drizzle TeamDTDrizzle Team / help
13mo ago
createSelectSchema & createInsertSchema does not infer array properly
Drizzle TeamDTDrizzle Team / help
3y ago
createInsertSchema
Drizzle TeamDTDrizzle Team / help
2y ago
createInsertSchema does not infer notNull() correclty?
Drizzle TeamDTDrizzle Team / help
3y ago