3 Replies
Hi! Have you tried
db.select({ count: count() }).from(YOUR_TABLE).where(eq(YOUT_TABLE.userId, YOUR_GIVEN_VALUE))
?ohhh, so a .where after the count
no I haven't, will try soon, thanks
it says
An argument for 'id' was not provided.
for the count
function
@ubinatus
nevermind, it was something else
I havent tested it, but it prob worksHey guys. You can check this guide https://orm.drizzle.team/learn/guides/count-rows. It might can help you