Open f8k8 opened 3 months ago
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.:
_count
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
_count
field doesn't allow any filters on its fields though. I.e.:Should allow something like: