Kevin Lanthier
10/18/2022, 8:29 PM$transaction
it leaves an idle connection afterwards.
Code looks like that:
const [items, count] = await this.prisma.$transaction([
this.prisma.user.findMany({ ...args, include: userIncludes }),
this.prisma.user.count({ where: computedWhere }),
]);
Nurul
10/19/2022, 11:19 AMKevin Lanthier
10/19/2022, 1:36 PMKevin Lanthier
10/19/2022, 1:37 PMVladi Stevanovic