feat: add count by relation

This commit is contained in:
Methapon Metanipat 2024-10-03 14:30:35 +07:00
parent 7e8c9b1b7c
commit c27620c2b5

View file

@ -183,6 +183,9 @@ export class QuotationController extends Controller {
prisma.quotation.findMany({
where,
include: {
_count: {
select: { worker: true },
},
customerBranch: true,
paySplit: true,
},