PrismaP
Prisma12mo ago
2 replies
Arxk

Converting a query to use TypedSQL

prisma.$transaction(data.map((match) => {
    return prisma.match.update({
      where: {
        matchId: match.id,
      },
      data: {
        fixtureData: match as unknown as InputJsonValue,
        dateOfDay: match.date,
      }
    });
  })


How would I be able to convert this to a TypedSQL query?
Was this page helpful?