PrismaP
Prisma6d ago
3 replies
Blained

Cannot await Prisma Bulk Queries

Are Prisma bulk operations not considered promises?

eg prismaClient.database.deleteMany(), I can't use await or .then here, says they dont exist/have no affect

It returns a PrismaPromise<BatchPayload> but I cannot use await on it. Why?
Was this page helpful?