feat: add count by relation
This commit is contained in:
parent
7e8c9b1b7c
commit
c27620c2b5
1 changed files with 3 additions and 0 deletions
|
|
@ -183,6 +183,9 @@ export class QuotationController extends Controller {
|
||||||
prisma.quotation.findMany({
|
prisma.quotation.findMany({
|
||||||
where,
|
where,
|
||||||
include: {
|
include: {
|
||||||
|
_count: {
|
||||||
|
select: { worker: true },
|
||||||
|
},
|
||||||
customerBranch: true,
|
customerBranch: true,
|
||||||
paySplit: true,
|
paySplit: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue