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

Tried using createSelectSchema() on a table that has a column of type 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 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
1 Reply
MAST
MAST6mo ago
So the vector is new so I'm assuming the drizzle-zod hasn't been updated to work with it.
Want results from more Discord servers?
Add your server