diff --git a/examples/updateGuildCounter.ts b/examples/updateGuildCounter.ts new file mode 100644 index 0000000..2f53489 --- /dev/null +++ b/examples/updateGuildCounter.ts @@ -0,0 +1,13 @@ +const updateGuildCounter = await prisma.guildCounter.update({ + where: { + guildId_channelId: { + guildId: guild.id, + channelId: channel.id, + }, + }, + data: { + count: { + increment: 1, + }, + }, +});