samson
Explore posts from serversDTDrizzle Team
•Created by samson on 6/2/2024 in #help
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.
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 them2 replies
DTDrizzle Team
•Created by samson on 5/6/2024 in #help
Having placeholders "survive" dynamic query building
If the query I'm trying to modify with a dynamic query (
....$dynamic()
) contains any placeholders, I'm getting an error that says No value for placeholder.... provided
.
That seems counterintuitive because I should only be required to provide placeholder values when I actually execute the query, not when I'm still "building" it.
Is this a limitation of Drizzle, or am I thinking the wrong way about this? EDIT: Funny enough, the query seems to still work despite the error..
Simple example to illustrate:
1 replies
DTDrizzle Team
•Created by samson on 2/21/2024 in #help
Is there really no way to construct a valid orderBy statement dynamically without $.dynamicQuery?
I realize I can append multiple
orderBy
statements with .$dynamic()
But I'm wondering why a more direct approach doesn't work?
Error message is2 replies