Hebilicious
DTDrizzle Team
•Created by Hebilicious on 1/11/2024 in #help
Postgres ARRAY and sql template proper syntax
Hello there !
I have a where clause in a query that looks like this :
I can't figure out a nice way to pass something to that array.
AFAIK the only think that works is to
.join()
the string and manually do :
Is there a nicer way ?
If that's the way, I'm happy to add that to the docs, because it took a lot of fiddling to figure out.1 replies
DTDrizzle Team
•Created by Hebilicious on 1/2/2024 in #help
.$inferSelect for relations
Hello there, is there a convenient way to get the list of relations of a specific table ? Either directly or at the type level.
Basically getting what the with argument accept in the rqb.
Cheers o/
5 replies
DTDrizzle Team
•Created by Hebilicious on 12/26/2023 in #help
Drizzle studio : Many To Many : There is not enough information to infer relation
I can't seen to get rid of the following error with Drizzle studio :
Here are the relevant parts of my schema.
I tried adding a relationName with the name of the pivot table like this
But that did not change anything. Am I missing something ?
I've seen similar questions previously asked, but none of the suggestions seems to apply for my specific case.
13 replies
DTDrizzle Team
•Created by Hebilicious on 12/23/2023 in #help
Advanced aggregations help
Here's a Drizzle query that I'm trying to do :
Unfortunately I'm getting a drizzle type error for the count one. What am I doing wrong ?
36 replies