AstroBear
DTDrizzle Team
•Created by AstroBear on 1/30/2024 in #help
Do transaction automatically rollback on error?
I was reading the docs about transactions and it is not clear whether the transaction is rolled back when an error is thrown.
Which is:
5 replies
DTDrizzle Team
•Created by AstroBear on 1/26/2024 in #help
Why does `sum` return `SQL<string | null>`?
I was trying to use the
sum
aggregate function and I noticed that it returns a string. Why is that?
10 replies
DTDrizzle Team
•Created by AstroBear on 1/11/2024 in #help
Using `count` in CTE has type `never`
I got the following tables:
users
: id
, ...
followers
: followingId
, followerId
I'm trying to write a with
common table expression to reuse in other queries:
The problem is that now, if I try to use the results of that CTE, sq.following
and sq.followers
are not valid columns:
2 replies
DTDrizzle Team
•Created by AstroBear on 1/8/2024 in #help
Include count of relations
How can I achieve the same this Prisma query does in Drizzle?
I'd like to include the number of posts the user has created in the result
3 replies