Is there any reason a simple `prisma.[entity].find...
# orm-help
k
Is there any reason a simple
prisma.[entity].findMany()
command would cause an error,
invalid invocation
? that basically all what the error says
r
It shouldn’t. What version of Prisma are you on?
k
v2.7.0
every now and then I get the error:
can't resolve async_hooks
r
Are you using it on the frontend? If so, that’s not possible right now.
k
What's not possible?
r
You cannot use Prisma queries like
findMany
at the frontend. For now, it’s only supported on the server side.
k
The script in question is not on the front-end
I still am getting the error
here is what I'm getting:
Copy code
PrismaClientInitializationError:
Invalid `prisma.golfParkAlert.findMany()` invocation in
webpack-internal:///./pages/api/[xyz]/index.ts:93:45


  Invalid feature flag: aggregations
    at PrismaClientFetcher.request ...
r
The feature flag is incorrect. You don’t need to provide any feature flag for using aggregations in your
schema.prisma
.