bart
bart
DTDrizzle Team
Created by kge on 11/7/2024 in #help
I'm trying using $count, and it giving me fieldAlias missing. What should I do?
You need to do this: postCount: db.$count(post, eq(post.user, user.id)).as('postCount') But there's a bug in the $count function see: https://github.com/drizzle-team/drizzle-orm/issues/3493
6 replies