How to get findMany with count?
I have following query
and have following relation
how to get serviceOrders with serviceOrderItems count?
6 Replies
Hey, did you find a solution? Have same question
here is an example that I already did.
Also if you want you can check out this website to get live demo.
https://finddevs.vercel.app/
Find Devs - Discover All Developers From The Programming World
Find Dev is kind of Developers Fair. An open source platform to find all the developers in the world.
i want to use findMany not select
if i use select() function i need to manually manage calling relations
Hello guys, as for now, Drizzle does not support aggregations with relational queries, so now you can only do this using
.select()
i found solution using sub queries
i think this is not the best solution but using .select() it's hard to control relation between tables