bernardoquina
DTDrizzle Team
•Created by bernardoquina on 5/23/2023 in #help
Count in relational queries
How do I count in relational queries? For example if i'm querying db.query.posts.findMany() and want to include an extra field that counts the number of likes (diff table), how can I achieve that? Couldn't make it work with the "extras" and trying to make a sql
count()
there.
Thanks in advance7 replies