Eden Lane
07/06/2021, 5:12 PM.count()
query has stopped working for some reason.
I'm getting following error:
Invalid `prisma.task.aggregate()` invocation:
Failed to validate the query: `Field does not exist on enclosing type.` at `Query.aggregateTask.AggregateTask._count`
My code is
const totalCount = await prisma.task.count({
where,
});
can someone help me with that? Documentation says I'm doing everything correctlyEden Lane
07/06/2021, 5:39 PM