Miles
Explore posts from serversDTDrizzle Team
•Created by Miles on 8/11/2024 in #help
Figuring out where a query short-circuts for a PUT endpoint
You could try each cases and analyze what the db drivers throws / the query returnsthis might be the best approach yesh
5 replies
DTDrizzle Team
•Created by Miles on 8/11/2024 in #help
Figuring out where a query short-circuts for a PUT endpoint
201 and 204, maybe comparing value you try to set and value you get with “returning” you can add to the query.how would i do this? after updating they'd both end up equaling each other (this is put so in theory I'm dropping and replacing; this approach is just an optimization essentially)
409 maybe a db error about no matching target conditions.hmm ok
5 replies
DTDrizzle Team
•Created by Miles on 8/9/2024 in #help
Unifying a JSON column's return type with `drizzle-zod`'s `Json`
My current solution is doing
.$type<object>
2 replies