© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
1 reply
samson

drizzle-zod not working with column of type vector (as introduced in latest release v.0.31.0)

Tried using
createSelectSchema()
createSelectSchema()
on a table that has a column of type
vector
vector
, e.g.

...
    embedding: vector("embedding", { dimensions: 384 }),
...
    embedding: vector("embedding", { dimensions: 384 }),


Getting a strange error:

Error: Cannot use 'in' operator to search for 'enumValues' in undefined
Error: Cannot use 'in' operator to search for 'enumValues' in undefined


The error message is kind of weird (why is it talking about enumValues?), but without the vector column, everything works out... Any pointers to how I could fix this and keep using drizzle-zod's helper functions? I use them extensively in my project so it would be a bummer if I had to ditch them
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

drizzle-zod type errors with latest versions
Drizzle TeamDTDrizzle Team / help
3y ago
Latest drizzle-orm 0.37.0 break drizzle-zod
Drizzle TeamDTDrizzle Team / help
15mo ago
Drizzle-Zod not supported in latest version of Drizzle-ORM
Drizzle TeamDTDrizzle Team / help
16mo ago
Drizzle Zod refining not working?
Drizzle TeamDTDrizzle Team / help
2y ago