Prisma's .count() method accepts arguments to filter which records to count. The generated _count field doesn't allow any filters on its fields though. I.e.:
findFirstModelA {
_count {
modelB
}
}
Should allow something like:
findFirstModelA {
_count {
modelB(where: $where)
}
}
Prisma's .count() method accepts arguments to filter which records to count. The generated
_countfield doesn't allow any filters on its fields though. I.e.:Should allow something like: