Ibad Shaikh
09/18/2021, 5:42 PM_prisma.post.count_()
But it says:
Invalid prisma.post.aggregate() invocation:\n\n\n Failed to validate the query: Field does not exist on enclosing type. at `Query.aggregatepost.AggregatePost._count
Any solution for it?
Thanking in advance :)Ryan
09/20/2021, 6:36 AMIbad Shaikh
09/20/2021, 9:37 AMRyan
09/20/2021, 10:20 AMIbad Shaikh
09/20/2021, 1:54 PMRyan
09/20/2021, 2:08 PMIbad Shaikh
09/20/2021, 2:21 PMprisma.post.aggregate() invocation:
Failed to validate the query: Field does not exist on enclosing type. at Query.aggregatepost.AggregatePost._count
at cb (F:\All Works\backend\node_modules\@prisma\client\runtime\index.js3649417)
at processTicksAndRejections (internal/process/task_queues.js935)
at async main (file///F/All%20Work/backend/prisma/seed.js213) {
code: 'P2009',
clientVersion: '2.30.3',
meta: {
query_validation_error: 'Field does not exist on enclosing type.',
query_position: 'Query.aggregatepost.AggregatePost._count'
}
}Ibad Shaikh
09/20/2021, 2:22 PMRyan
09/20/2021, 2:25 PMIbad Shaikh
09/20/2021, 4:41 PM