#Converting a query to use TypedSQL

2 messages · Page 1 of 1 (latest)

outer umbra
#
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?

tiny waveBOT
#

You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.